What's the fastest way to implement that in Perl?Considering your graph has a loop (A -> B, B -> A), and your start point lies on this loop, there's no fastest way. In fact, any program that terminates will not be correct, as there are an infinite numbers of paths from B to E.
In reply to Re: Finding All Paths From a Graph From a Given Source and End Node
by JavaFan
in thread Finding All Paths From a Graph From a Given Source and End Node
by neversaint
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |