gographviz

Parses the Graphviz DOT language in golang

Github星跟踪图

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

主要指标

概览
名称与所有者awalterschulze/gographviz
主编程语言Go
编程语言Go (语言数: 2)
平台
许可证Other
所有者活动
创建于2015-03-14 18:27:00
推送于2023-02-28 18:35:05
最后一次提交
发布数6
最新版本名称v2.0.3 (发布于 )
第一版名称v1.0 (发布于 )
用户参与
星数562
关注者数12
派生数74
提交数108
已启用问题?
问题数43
打开的问题数8
拉请求数27
打开的拉请求数0
关闭的拉请求数9
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?