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

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