[-> ( tail head -- edge )
Graphviz notation ยป Aliases that resemble DOT code

Prev:[-- ( tail head -- edge )
Next:[node ( -- attrs )


Vocabulary
graphviz.notation

Inputs
tailan object
headan object


Outputs
edgean edge


Word description
Shorthand for <edge> to be used with ]; and attribute-setting generic words (see Notation for setting Graphviz attributes) so that directed graphs read more like digraphs in the DOT language.

Examples
Instead of writing
<digraph> 1 2 <edge> "red" =color add

it looks better to write
<digraph> 1 2 [-> "red" =color ];

Compare this with the DOT language, where you'd write
digraph { 1 -> 2 [ color="red" ]; }


See also
[add-node, [add-edge, [--, [node, [edge, [graph, ];

Definition