shortest-paths.pdf