Home > @jsplumbtoolkit/core > Vertex > addGraph
#
Vertex.addGraph() methodAdds 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;
#
ParametersParameter | Type | Description |
---|---|---|
g | string | Graph |
Returns:
The Graph that was added.