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

Prev:[add-edge ( tail head -- edge )
Next:[-> ( tail head -- edge )


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 undirected graphs read more like graphs in the DOT language.

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

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

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


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

Definition