Shortest path finding was changed. Longest path finding does not work.