-- ( graph tail head -- graph' )
Graphviz notation ยป Aliases that resemble DOT code

Next:-> ( graph tail head -- graph' )


Vocabulary
graphviz.notation

Inputs
grapha graph or a subgraph
tailan object
headan object


Outputs
graph'a graph or a subgraph


Word description
Shorthand for add-edge. Makes undirected graphs read more like graphs in the DOT language.

Examples
Instead of writing
<graph> 1 2 add-edge 3 4 add-edge 5 6 add-edge

it looks better to write
<graph> 1 2 -- 3 4 -- 5 6 --

Compare this with the DOT language, where you'd write
graph { 1 -- 2 3 -- 4 5 -- 6 }


See also
~--

Definition