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, _ := 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()
go get github.com/awalterschulze/gographviz
Using Golang and GraphViz to Visualize Complex Grails Applications
Overall
Maintained
Code review
Go module
Latest release
Releases this year
13,361 followers · starred Mar 2020
159 followers · starred Oct 2019
218 followers · starred Apr 2021
128 followers · starred Jul 2017
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, _ := 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()
go get github.com/awalterschulze/gographviz
Using Golang and GraphViz to Visualize Complex Grails Applications
Overall
Maintained
Code review
Go module
Latest release
Releases this year
13,361 followers · starred Mar 2020
159 followers · starred Oct 2019
218 followers · starred Apr 2021
128 followers · starred Jul 2017