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.
graphAst, _ := parser.ParseString(`digraph G {}`)
graph := NewGraph()
Analyse(graphAst, graph)
graph.AddNode("G", "a", nil)
graph.AddNode("G", "b", nil)
graph.AddEdge("a", "b", true, nil)
output := graph.String()
The godoc includes some more examples.
go get github.com/awalterschulze/gographviz
aptly - Debian repository management tool
Using Golang and GraphViz to Visualize Complex Grails Applications