Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > RSCommon > GGraph > Classes > TWeightedNode > Properties

TWeightedNode.ShortestPath Property

Scroll Prev Top Next More

Contains a list of nodes (in the Objects property) defining the shortest path between the node at index 0 and the current node.

This property is filled in by the    EnumerateShortestPaths method of the TGCustomGraph class. After calling the EnumerateShortestPaths method, you can use this property to find the shortest path between the first node and this node. The Weight property will be filled in with the length or cost of getting from the start node to this node.

This property may be nil (if the EnumerateShortestPaths method is not called, directly or indirectly). When the node is destroyed, it will free the TStrings property if it is not nil.
 

Namespace: GGraph

Property Value

Type: TStrings

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb