Graph
Graph source code in the DOT language.
Value parameters
- body
-
ArrayBuffer of lines to add to the graph body.
- comment
-
Comment added to the first line of the source.
- edgeAttr
-
Mapping of (attribute, value) pairs set for all edges.
- graphAttr
-
Mapping of (attribute, value) pairs for the graph.
- name
-
Graph name used in the source code.
- nodeAttr
-
Mapping of (attribute, value) pairs set for all nodes.
- strict
-
Rendering should merge multi-edges (default: false).
Attributes
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
Attributes
- Definition Classes
Attributes
- Definition Classes
Attributes
- Definition Classes
Inherited methods
Add a graph/node/edge attribute statement.
Add a graph/node/edge attribute statement.
Value parameters
- attrs
-
Attributes to be set.
- kw
-
Attributes target ("graph", "node", or "edge").
Attributes
- Inherited from:
- GraphVizDotML
Create an edge between two nodes.
Create an edge between two nodes.
Value parameters
- attrs
-
Any additional edge attributes (must be strings).
- headName
-
End node identifier.
- label
-
Caption to be displayed near the edge.
- tailName
-
Start node identifier.
Attributes
- Inherited from:
- GraphVizDotML
Create a bunch of edges.
Create a bunch of edges.
Value parameters
- tailHeads
-
array of (tailName, headName) pairs.
Attributes
- Inherited from:
- GraphVizDotML
Create a bunch of edges.
Create a bunch of edges.
Value parameters
- headNames
-
End nodes identifier.
- tailName
-
Start node identifier.
Attributes
- Inherited from:
- GraphVizDotML
Create a node.
Create a node.
Value parameters
- attrs
-
Any additional node attributes (must be strings).
- label
-
Caption to be displayed (defaults to the node name).
- name
-
Unique identifier for the node inside the source.
Attributes
- Inherited from:
- GraphVizDotML
Save the DOT source to file.
Save the DOT source to file.
Value parameters
- directory
-
Directory for source saving and rendering.
- filename
-
Filename for saving the source (defaults to name + ".gv")
Attributes
- Returns
-
The (possibly relative) path of the saved source file.
- Inherited from:
- GraphVizDotML
The DOT source code as string.
Add the current content of the given graph as subgraph.
Add the current content of the given graph as subgraph.
Value parameters
- graph
-
An instance of the same kind (Graph, Digraph) as the current graph.
Attributes
- Inherited from:
- GraphVizDotML