<cluster> ( id -- subgraph )
Graphviz ยป Graphviz data structures

Prev:<anon> ( -- subgraph )
Next:<node> ( id -- node )


Vocabulary
graphviz

Inputs
idan object


Outputs
subgrapha subgraph


Word description
Constructs a cluster, which is a subgraph whose id begins with the word "cluster".

id must be an object supported by the present word. The string "cluster_" is automatically prefixed to the id of the resulting subgraph.

Notes
Clusters are just a syntactic convention. Not all Graphviz layout engines treat clusters any differently from regular subgraphs. See the Graphviz documentation (https://graphviz.org/Documentation.php) for more information.

Examples
USING: graphviz prettyprint ; "foo" <cluster> .
T{ subgraph { id "cluster_foo" } { statements V{ } } }


USING: accessors graphviz prettyprint ; 0 <cluster> id>> .
"cluster_0"


See also
subgraph, <subgraph>, <anon>

Definition