Apply Dijkstra's algorithm (#708)

Apply Dijkstra's algorithm (#708)

Find shortest paths from a source vertex to all others in a weighted graph.