Begin learn Shortest path.