Godot is a graphviz wrapper for Go.
An example:
package main
import "github.com/paetzke/godot/godot"
func main() {
dotter, err := godot.NewDotter(godot.OUT_PDF, godot.GRAPH_DIRECTED, "test.pdf")
defer dotter.Close()
if err != nil {
panic(err)
}
dotter.SetLink("val", "val")
dotter.SetLabel("val", "LABEL!!")
dotter.SetLink("val", "val1")
dotter.SetLink("val", "val1")
dotter.SetLink("val", "val1")
dotter.SetLabel("val3", "sLABEL!!")
dotter.SetNodeShape("val3", godot.SHAPE_BOX)
dotter.SetNodeShape("val34", godot.SHAPE_BOX)
}
Thanks to:
- kisielk (https://github.com/kisielk) for fixing a bug
Copyright (c) 2013, Friedrich Paetzke (paetzke@fastmail.fm)
All rights reserved.