Is it possible to reverse the algorithm to get the longest path?
Is it possible to reverse the algorithm to get the longest path?