Lucas Serven e989f0a25f init 7 éve
..
ast e989f0a25f init 7 éve
internal e989f0a25f init 7 éve
.travis.yml e989f0a25f init 7 éve
AUTHORS e989f0a25f init 7 éve
CONTRIBUTORS e989f0a25f init 7 éve
LICENSE e989f0a25f init 7 éve
Makefile e989f0a25f init 7 éve
Readme.md e989f0a25f init 7 éve
analyse.go e989f0a25f init 7 éve
attr.go e989f0a25f init 7 éve
attrs.go e989f0a25f init 7 éve
catch.go e989f0a25f init 7 éve
dot.bnf e989f0a25f init 7 éve
edges.go e989f0a25f init 7 éve
escape.go e989f0a25f init 7 éve
gographviz.go e989f0a25f init 7 éve
graph.go e989f0a25f init 7 éve
install-godeps.sh e989f0a25f init 7 éve
nodes.go e989f0a25f init 7 éve
relations.go e989f0a25f init 7 éve
subgraphs.go e989f0a25f init 7 éve
write.go e989f0a25f init 7 éve

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