in reply to Re^14: Finding All Paths From a Graph From a Given Source and End Node
in thread Finding All Paths From a Graph From a Given Source and End Node
Any recursion can be linearized.
Pushing and popping the @path array and/or %seen is all you need as a stack.
But I'm too lazy to do neversaints homework! :)
Cheers Rolf
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^16: Finding All Paths From a Graph From a Given Source and End Node
by BrowserUk (Patriarch) on Nov 02, 2010 at 21:14 UTC |