Home > @jsplumbtoolkit/core > Vertex > addGraph
Vertex.addGraph() method
Adds a sub-graph to this vertex. If you provide an existing Graph instance that does not have an id, one will be assigned.
Signature:
addGraph(g: string | Graph): Graph;
Parameters
Parameter | Type | Description |
---|---|---|
g | string | Graph |
Returns:
The Graph that was added.