Static
edgeCreates a new dot edge.
Example: "n1 -> n2 [label="Hello"];"
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.
The created dot edge.
Static
edgeCreates a new dot attributes statement for edges.
Example: "edge [color=red];"
The list of attributes.
The created dot attributes statement.
Static
graphCreates a new dot graph.
Example: "digraph myGraph { ... }"
Optional
label: stringThe label of the graph.
Whether the graph is directed.
Whether the graph is strict. A strict graph may not have multiple edges between the same nodes: they are merged into a single edge.
The list of statements inside the graph.
The created dot graph.
Static
graphCreates a new dot attributes statement for graphs.
Example: "graph [label="Hello"];"
The list of attributes.
The created dot attributes statement.
Static
nodeCreates a new dot node.
Example: "n1 [label="Hello"];"
The ID of the node.
Optional
attrs: Record<string, string>The list of attributes of the node.
The created dot node.
Static
nodeCreates a new dot attributes statement for nodes.
Example: "node [shape=point];"
The list of attributes.
The created dot attributes statement.
Static
nodeCreates a new node identification.
Examples: "n1", "n1:nw"
The ID of the node.
Optional
port: stringThe port of the node.
Optional
compass_pt: CompassPortsThe compass point of the node.
The created node identification.
Static
subgraphCreates a new dot subgraph.
Example: "subgraph cluster_0 { ... }"
Optional
label: stringThe label of the subgraph.
The list of statements inside the subgraph.
The created dot subgraph.
A factory class for creating dot graphs, subgraphs, nodes, and edges.