awalterschulze/gographviz

Parses the Graphviz DOT language in golang

Go

565

107 commits

updated Feb 28, 2023

See the code

README

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

Installation

go get github.com/awalterschulze/gographviz

Build and 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
  • inframap - Read your tfstate or HCL to generate a graph specific for each Terraform provider
  • Antrea Traceflow supports using Traceflow for network diagnosis for Antrea, a Kubernetes networking solution intended to be Kubernetes native

Mentions

Using Golang and GraphViz to Visualize Complex Grails Applications

go
golang
graphviz
graphviz-dot-language
parse

Project health

Overall

3.6/10

Maintained

0/10

Code review

6/10
OpenSSF Scorecard

Latest release

v2.0.3+incompatible · Nov 2, 2020

Releases this year

0

Significant stargazers

Jaana Dogan

13,361 followers · starred Mar 2020

Boris Nagaev

159 followers · starred Oct 2019

Quim Muntal

218 followers · starred Apr 2021

Vladislav Rassokhin

128 followers · starred Jul 2017

awalterschulze/gographviz

Parses the Graphviz DOT language in golang

Go

565

107 commits

updated Feb 28, 2023

See the code

README

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

Installation

go get github.com/awalterschulze/gographviz

Build and 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
  • inframap - Read your tfstate or HCL to generate a graph specific for each Terraform provider
  • Antrea Traceflow supports using Traceflow for network diagnosis for Antrea, a Kubernetes networking solution intended to be Kubernetes native

Mentions

Using Golang and GraphViz to Visualize Complex Grails Applications

go
golang
graphviz
graphviz-dot-language
parse

Project health

Overall

3.6/10

Maintained

0/10

Code review

6/10
OpenSSF Scorecard

Latest release

v2.0.3+incompatible · Nov 2, 2020

Releases this year

0

Significant stargazers

Jaana Dogan

13,361 followers · starred Mar 2020

Boris Nagaev

159 followers · starred Oct 2019

Quim Muntal

218 followers · starred Apr 2021

Vladislav Rassokhin

128 followers · starred Jul 2017