Skip to main content

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

ParameterTypeDescription
sourcestring | Vertex
targetstring | Vertex

Returns:

string

Printed path. Mostly useful for debugging.