-- ( graph tail head -- graph' )

Graphviz notation ยป Aliases that resemble DOT code

Graphviz notation ยป Aliases that resemble DOT code

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

Vocabulary

graphviz.notation

Inputs

Outputs

Word description

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

Examples

Instead of writing

it looks better to write

Compare this with the DOT language, where you'd write

See also

~--

Definition

graphviz.notation

Inputs

graph | a graph or a subgraph |

tail | an object |

head | an object |

Outputs

graph' | a graph or a subgraph |

Word description

Shorthand for add-edge. Makes undirected graph s 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