Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > RSCommon > GGraph > Classes > TGCustomGraph > Methods

TGCustomGraph.EnumerateShortestPaths(TGGraphNode) Method

Scroll Prev Top Next More

Finds the shortest paths and their lengths between the StartNode and every other node in the graph. After calling this method, every node will contain the length from the StartNode to that node (in the  Weight property) and the shortest path (in the  ShortestPath property).

noteNote

The EnumerateShortestPaths method only works with weighted graphs (a graph of TWeightedNodes and TWeightedEdges).

Namespace: GGraph

Parameters

StartNode

Type: TGGraphNode

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb