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

Prev:<strict-digraph> ( -- graph )
Next:<anon> ( -- subgraph )


Vocabulary
graphviz

Inputs and outputs
idan object
subgrapha subgraph


Word description
Constructs an empty subgraph with the given id, which must be an object supported by the present word.

Notes
The empty string, "", counts as a distinct id. To create an anonymous subgraph, use <anon>.

Examples
USING: graphviz prettyprint ; "subg" <subgraph> subgraph? .
t


USING: accessors graphviz prettyprint ; 3.14 <subgraph> id>> .
"3.14"


USING: accessors graphviz prettyprint sequences ; "foo" <subgraph> statements>> empty? .
t


See also
subgraph, <anon>, <cluster>

Definition