Class PathHeuristics
This class provides some heuristics used for routing
capabilities within the ISpatialGraphEnvironment.
Inheritance
System.Object
PathHeuristics
Namespace: Mars.Components.Environments
Assembly: Mars.Components.dll
Syntax
public static class PathHeuristics : object
Methods
Shortest(ISpatialNode, ISpatialEdge, ISpatialNode)
Calculates the length for an edge, used as heuristic,
to navigate through the graph by expanding,
each next node which leads to the shortest next section.
Declaration
public static double Shortest(ISpatialNode source, ISpatialEdge edge, ISpatialNode target)
Parameters
Type | Name | Description |
---|---|---|
ISpatialNode | source | The source node of the route planning |
ISpatialEdge | edge | The intermediate edge, from which to decide the next expandable node. |
ISpatialNode | target | The target node of the route planning |
Returns
Type | Description |
---|---|
System.Double | Returns length for the edge. |