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

Prev:-- ( graph tail head -- graph' )
Next:~-- ( graph nodes -- 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 directed graphs read more like digraphs in the DOT language.

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

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

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


See also
add-edge, ~->

Definition