Creates a new subgraph statement.
Optionallabel: stringThe label of the subgraph.
The list of statements inside the subgraph.
OptionallabelThe 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.
Optionalattrs: Record<string, string>The list of attributes of the edge.
This subgraph statement, for chaining.
Adds an attribute to the edges of the subgraph.
The key of the attribute.
The value of the attribute.
This subgraph statement, for chaining.
Adds multiple attributes to the edges of the subgraph.
The attributes to add.
This subgraph statement, for chaining.
Adds an attribute to the subgraph.
The key of the attribute.
The value of the attribute.
This subgraph statement, for chaining.
Adds multiple attributes to the subgraph.
The attributes to add.
This subgraph statement, for chaining.
Adds a node to the subgraph.
The ID of the node.
Optionalattrs: Record<string, string>The list of attributes of the node.
This subgraph statement, for chaining.
Adds an attribute to the nodes of the subgraph.
The key of the attribute.
The value of the attribute.
This subgraph statement, for chaining.
Adds multiple attributes to the nodes of the subgraph.
The attributes to add.
This subgraph statement, for chaining.
Adds statements to the subgraph, nested.
The statements to add.
This subgraph statement, for chaining.
Converts the subgraph statement to a dot string.
Whether the graph is directed.
The number of spaces to indent.
The dot string of the subgraph statement.
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.