Home > @jsplumbtoolkit/core > Graph > printPath
Graph.printPath() method
Returns the path from source to target as a string.
Signature:
printPath(source: string | Vertex, target: string | Vertex): string;
Parameters
Parameter | Type | Description |
---|---|---|
source | string | Vertex | |
target | string | Vertex |
Returns:
string
Printed path. Mostly useful for debugging.