PathFinder class
Network family — class
Path finder component that visualizes shortest paths between network nodes. Highlights the path and displays path metrics.
Members
| Member | Kind | Description |
|---|---|---|
NetworkNode StartNode | Property | Gets or sets the start node for path finding. |
NetworkNode EndNode | Property | Gets or sets the end node for path finding. |
List<NetworkNode> PathNodes | Property | Gets the list of nodes in the current path. |
List<NetworkLink> PathLinks | Property | Gets the list of links in the current path. |
int PathLength | Property | Gets or sets the path length (number of edges). |
double PathCost | Property | Gets or sets the path cost/distance. |
bool ShowMetrics | Property | Gets or sets whether to show path metrics. |
PathFinder() | Method | Initializes a new instance of the PathFinder class. |
void SetPath(List<NetworkNode> nodes, List<NetworkLink> links, double cost = 0.0) | Method | Sets the path to visualize. The nodes in the path. The links in the path. The path cost. |
void ClearPath() | Method | Clears the current path. |
void HighlightPathInNetwork() | Method | Highlights the path nodes and links in the network visualization. This method should be called by the parent graph component. |
void ClearPathHighlighting() | Method | Clears path highlighting from the network. |