Path length and Shortest Path