Dijkstra's Algorithm.