subgraph
Graphviz » Graphviz data structures

Prev:edge
Next:graph


Vocabulary
graphviz

Class description
Represents a logical grouping of nodes and edges within a Graphviz graph. See https://graphviz.org/Documentation.php for more information.

Its structure is largely similar to graph, except subgraph only has two slots: id (a string) and statements (a sequence). The strict? and directed? slots of the parent graph are implicitly inherited by a subgraph.

id and statements correspond to the name and defining "body" of a subgraph in the DOT language, as in subgraph id { ... statements ... }.

In particular, statements should be a sequence containing only instances of:
subgraph
node
edge
graph-attributes
node-attributes
edge-attributes


See also
<subgraph>, <anon>, <cluster>

Definition


Methods