i advise you to read about BFS(breadth-first search). It's really usefull and simple algorithm
BFS
Loading collection data...
i advise you to read about
BFS
(breadth-first search). It's really usefull and simple algorithm