View Single Post
Mentor
7Nov2011,21:30  
xpi0t0s's Avatar
You could use a tree structure, or just save everything locally and recurse. Depends if you're using a depth-first or breadth-first algorithm.