Searches the graph for all nodes reachable from ANode. The method marks every node reachable with Visited = True. The method searches the graph using a depth first search.
The
InitializeNodes method must be called to initialize the graph before performing your search. The method
TraverseFrom combines calls to these two methods.
Namespace: GGraph
Delphi |
public |
Parameters
ANode
Type: TGGraphNode
The following code prints out all the nodes reachable from node 1:
|