Dijkstra’s Algorithm
Dijkstra’s is used to find shortest path from a single source to all the nodes in the graph. This algorithm cannot be used on graphs with negative edge weights or cycles.
Complexity: O(V*V) or O ( E Log V) for the optimized implementation

Output
0 02 21 103 105 124 125 12