toolkit instance from which to get the path info.
Optional
params: PathOptionsPath specification
toolkit instance from which to get the path info.
Returns true if the path contains the given object (a node, group, port or edge), false otherwise.
Node/Port/Edge, or object id, of the element to test for.
Optional
doNotFuzzyMatchNodes: booleanBy default,
if you pass a node/group in to this method and the path passes through a port on that node/group, this method
returns true. But if you set doNotFuzzyMatchNodes
to true, then this method will return true only if the node/group itself is on the path.
True if Path contains the object, false otherwise.
Deletes all the nodes/groups in the path. As with the contains
method, there is a special consideration here: if
a path passes through ports on a node/group, then that node/group will be, for the purposes of this method,
considered to be part of the path and it will be deleted. If you instead wish to delete only the ports in a
path, use deletePorts
. Note that this method will, of course, have the effect of also deleting all the edges,
since the nodes/groups for those edges will no longer exist.
Iterates through the path one step at a time. Each step consists of an object containing a
vertex
, and, for all entries except the first, an edge
member, which supplies the Edge that links
to the Vertex (which is why it is null for the first entry).
Function to call for each step.
Models the path between two Nodes/Ports, which consists of a series of [Group/Node/Port, Edge] pairs.