Finds and returns all paths that exist between two DiagramNode objects.
Namespace: MindFusion.Diagramming
File: PathFinder.js
JavaScript Copy Code |
---|
function findAllPaths (from, to, [maxPaths]) |
The first DiagramNode in the Path.
The last DiagramNode in the Path.
Number. The maximum number of paths to find.
An array of Path objects; if no paths are found, the array is empty.
The returned Path instances include the from and to nodes.
MindFusion.Diagramming for JavaScript Programmer's Guide | © 2024 MindFusion |