Represents all paths between two sets of nodes as computed by paths.
Inheritance Hierarchy
Remarks
When querying this result for a path or enumerating it, the paths are found on the fly. Enumerating all paths can be slow if the graph is large and Paths.startNodes or Paths.endNodes contain many nodes. Generally this should be used to find paths satisfying certain criteria and only enumerating until a suitable path is found to avoid walking the whole graph.
This class cannot be instantiated
Members
No filters for this type
Properties
Gets a collection of all paths between the Paths.startNodes and Paths.endNodes.
Gets a collection of all paths between the Paths.startNodes and Paths.endNodes.
This collection's enumerator calculates paths only when needed. This also means that accessing the ResultItemCollection.size<T> or via an index will cause all paths to be calculated immediately which can be slow.
readonlyfinal
Methods
Gets a collection of all paths between the given start and end nodes.
Gets a collection of all paths between the given
start and end nodes.This collection's enumerator calculates paths only when needed. This also means that accessing the ResultItemCollection.size<T> or via an index will cause all paths to be calculated immediately, which can be slow.
final
Parameters
- start: INode
- The start node to get the paths for.
- end: INode
- The end node to get the paths for.
Return Value
- ResultItemCollection<Path>
- All paths between
startandend.
Returns a path between the given start and end node if one exists.
Returns a path between the given
start and end node if one exists.final
Parameters
- start: INode
- The start node to get the path for.
- end: INode
- The end node to get the path for.
Return Value
- Path | null
- A path between
startandendornullif no path exists between the two nodes.