The Weight property is used by the GGraph.TGCustomGraph class to hold the length or cost to get to this node from another start node. The weight is calculated based on a start node when you call the
EnumerateShortestPaths or
ShortestPath methods.
Namespace: GGraph
Delphi |
published |
Property Value
Type: TGraphWeight
The following example determines the shortest path beween two nodes (the graph (TGGraph class) is assumed to be full of TWeightedNodes and TWeightedEdges): Delphi |
var |