This Repository contains an exploration to generate graphviz dot files with a templating engine (ninja2) in order to compensate shortcomings within the dot format.
brew install graphviz jqpip2.7 install j2cli./compile./compile json_data/nodes_1.json...
"nodes":[
{
"id":"node1",
"name": "label for node 1",
"bgcolor":"blue"
},
{
"id":"node2",
"style":"note"
},
...
{
"id":"node6"
}
],
"edges": [
{
"nodes":["node1","node2"]
},
...
{
"nodes":["node5","node6"],
"attributes":"color=green;constraint=false;dir=back;xlabel=\"edge label\";"
},
{
"nodes":["node1","node6"],
"style":"note"
}
]
...

Content type
Image
Digest
Size
46.3 MB
Last updated
almost 9 years ago
docker pull nasoym/graphviz_templated