Shortest path example