Dijkstra's Algorithm need to modify it