Creates a new subgraph statement.
Optional
label: stringThe label of the subgraph.
The list of statements inside the subgraph.
Optional
labelThe label of the subgraph.
The list of statements inside the subgraph.
Whether the subgraph may be interpreted as a cluster by the rendering engine.
For that, it must have a label that starts with 'cluster'.
Whether the subgraph is a cluster.
Adds an edge to the subgraph.
The ID of the source node of the edge.
The ID of the target node of the edge.
Optional
attrs: Record<string, string>The list of attributes of the edge.
This subgraph statement, for chaining.
Adds a node to the subgraph.
The ID of the node.
Optional
attrs: Record<string, string>The list of attributes of the node.
This subgraph statement, for chaining.
Adds statements to the subgraph, nested.
Rest
...statement: DotStatement[]The statements to add.
This subgraph statement, for chaining.
A subgraph statement in a dot graph.
A subgraph label may start with 'cluster' to represent a cluster, which is a special kind of subgraph that is visible in rendering.
A cluster acts like a container of nodes, and may be used to model nodes with children.