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

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


Vocabulary
graphviz

Inputs and outputs
idan object
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 (http://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