graphviz-doc-builder

0.1.0 • Public • Published

dot

api to build dot documents for graphviz

Example

const dot = require("graphviz-doc-builder");

const helloNode = dot.node("hello");
const worldNode = dot.node("world");
const edge = dot.edge(helloNode, worldNode);
const graph = dot.graph()
      .setParams({isOriented:true})
      .add(helloNode, worldNode, edge);

console.log(graph.toString());

will output

 digraph "2" {
	0 [label = "hello"];
	1 [label = "world"];
	"0" -> "1" [];
}

The goal of this api is to ease the construction of large dot files.

requirements

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.00latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.00

Package Sidebar

Install

npm i graphviz-doc-builder

Weekly Downloads

0

Version

0.1.0

License

ISC

Unpacked Size

22.8 kB

Total Files

10

Last publish

Collaborators

  • grgrdvrt