gographviz

Parses the Graphviz DOT language in golang

Github stars Tracking Chart

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)
  • kustomize-graph - A tool to visualize Kustomize dependencies

Mentions

Using Golang and GraphViz to Visualize Complex Grails Applications

Main metrics

Overview
Name With Ownerawalterschulze/gographviz
Primary LanguageGo
Program languageGo (Language Count: 2)
Platform
License:Other
所有者活动
Created At2015-03-14 18:27:00
Pushed At2023-02-28 18:35:05
Last Commit At
Release Count6
Last Release Namev2.0.3 (Posted on )
First Release Namev1.0 (Posted on )
用户参与
Stargazers Count562
Watchers Count12
Fork Count74
Commits Count108
Has Issues Enabled
Issues Count43
Issue Open Count8
Pull Requests Count27
Pull Requests Open Count0
Pull Requests Close Count9
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private