Handbook
Glossary
Aliases that resemble DOT code
Graphviz notation
Prev:
Notation for setting Graphviz attributes
The
graphviz.notation
vocabulary provides aliases for words defined in the
graphviz
and
graphviz.attributes
vocabularies. These will make Factor code read more like DOT code (see
https://graphviz.org/content/dot-language
).
Notation for edges without attributes:
--
( graph tail head -- graph' )
->
( graph tail head -- graph' )
~--
( graph nodes -- graph' )
~->
( graph nodes -- graph' )
Notation for nodes/edges with local attributes:
[add-node
( id -- node )
[add-edge
( tail head -- edge )
[--
( tail head -- edge )
[->
( tail head -- edge )
Notation for global attributes:
[node
( -- attrs )
[edge
( -- attrs )
[graph
( -- attrs )
Word to "close off" notation for attributes:
];
( graph statement -- graph' )