/gviz

A simple Dart package for writing GraphViz dot files

Primary LanguageDartOtherNOASSERTION

Pub Package Build Status

A simple Dart package for writing GraphViz dot files.

Example Tasks with Graphs

Add a Sub-graph

GViz graph = GViz();
Gviz subGraph = Gviz(name: 'SG');   //  Needs to have a name other than parent graph
subGraph
..addNode('A')
..addNode('B')
..addNode('C');

subGraph
..addEdge('A', 'B')
..addEdge('B', 'C')
..addEdge('C', 'A');

graph.addSubgraph(subGraph);
graph.addEdge('1', 'A');