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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?