Search
PathFinder.findAllPaths Method
See Also
 






Finds and returns all paths that exist between two DiagramNode objects.

Namespace: MindFusion.Diagramming
File: PathFinder.js

 Syntax

JavaScript  Copy Code

function findAllPaths (from, to, [maxPaths])

 Parameters

from

The first DiagramNode in the Path.

to

The last DiagramNode in the Path.

maxPaths
Optional.

Number. The maximum number of paths to find.

 Return Value

An array of Path objects; if no paths are found, the array is empty.

 Remarks

The returned Path instances include the from and to nodes.

 See Also