kilo/vendor/github.com/awalterschulze/gographviz
Lucas Serven e989f0a25f
init
2019-01-18 02:50:10 +01:00
..
ast init 2019-01-18 02:50:10 +01:00
internal init 2019-01-18 02:50:10 +01:00
.travis.yml init 2019-01-18 02:50:10 +01:00
AUTHORS init 2019-01-18 02:50:10 +01:00
CONTRIBUTORS init 2019-01-18 02:50:10 +01:00
LICENSE init 2019-01-18 02:50:10 +01:00
Makefile init 2019-01-18 02:50:10 +01:00
Readme.md init 2019-01-18 02:50:10 +01:00
analyse.go init 2019-01-18 02:50:10 +01:00
attr.go init 2019-01-18 02:50:10 +01:00
attrs.go init 2019-01-18 02:50:10 +01:00
catch.go init 2019-01-18 02:50:10 +01:00
dot.bnf init 2019-01-18 02:50:10 +01:00
edges.go init 2019-01-18 02:50:10 +01:00
escape.go init 2019-01-18 02:50:10 +01:00
gographviz.go init 2019-01-18 02:50:10 +01:00
graph.go init 2019-01-18 02:50:10 +01:00
install-godeps.sh init 2019-01-18 02:50:10 +01:00
nodes.go init 2019-01-18 02:50:10 +01:00
relations.go init 2019-01-18 02:50:10 +01:00
subgraphs.go init 2019-01-18 02:50:10 +01:00
write.go init 2019-01-18 02:50:10 +01:00

Readme.md

Parses the Graphviz DOT language and creates an interface, in golang, with which to easily create new and manipulate existing graphs which can be written back to the DOT format.

This parser has been created using gocc.

Example (Parse and Edit)

graphAst, _ := gographviz.ParseString(`digraph G {}`)
graph := gographviz.NewGraph()
if err := gographviz.Analyse(graphAst, graph); err != nil {
    panic(err)
}
graph.AddNode("G", "a", nil)
graph.AddNode("G", "b", nil)
graph.AddEdge("a", "b", true, nil)
output := graph.String()

Documentation

The godoc includes some more examples.

Installation

go get github.com/awalterschulze/gographviz

Tests

Build Status

Users

  • aptly - Debian repository management tool
  • gorgonia - A Library that helps facilitate machine learning in Go
  • imagemonkey - Let's create our own image dataset
  • depviz - GitHub dependency visualizer (auto-roadmap)

Mentions

Using Golang and GraphViz to Visualize Complex Grails Applications