![]() |
|
Welcome to the Monastery | |
PerlMonks |
Re^15: Finding All Paths From a Graph From a Given Source and End Nodeby LanX (Cardinal) |
on Nov 02, 2010 at 20:39 UTC ( #869092=note: print w/replies, xml ) | Need Help?? |
just intelligent looping, no need for tail-recursion. 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
In Section
Seekers of Perl Wisdom
|
|