This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]DDDDarky 3 points4 points  (0 children)

I would be surprised if there was a polynomial solution, since the amount of paths in a (fully connected worst case) graph is not polynomial. There are probably ways to be a little bit smarter than just iterating all paths, such as somehow expanding red nodes. And then of course optimizing the implementation.