Path finder component that visualizes shortest paths between network nodes. Highlights the path and displays path metrics.

Members

MemberKindDescription
NetworkNode StartNodePropertyGets or sets the start node for path finding.
NetworkNode EndNodePropertyGets or sets the end node for path finding.
List<NetworkNode> PathNodesPropertyGets the list of nodes in the current path.
List<NetworkLink> PathLinksPropertyGets the list of links in the current path.
int PathLengthPropertyGets or sets the path length (number of edges).
double PathCostPropertyGets or sets the path cost/distance.
bool ShowMetricsPropertyGets or sets whether to show path metrics.
PathFinder()MethodInitializes a new instance of the PathFinder class.
void SetPath(List<NetworkNode> nodes, List<NetworkLink> links, double cost = 0.0)MethodSets the path to visualize. The nodes in the path. The links in the path. The path cost.
void ClearPath()MethodClears the current path.
void HighlightPathInNetwork()MethodHighlights the path nodes and links in the network visualization. This method should be called by the parent graph component.
void ClearPathHighlighting()MethodClears path highlighting from the network.

Related