Hacker News new | ask | show | jobs
by bananasbandanas 4047 days ago
Sounds a lot like the longest path problem [1], which is NP-hard.

[1] http://en.wikipedia.org/wiki/Longest_path_problem