Function that implements Dijkstra’s single source shortest path algorithm for a graph represented using adjacency matrix representation.
>>> Graph(4).dijkstra(1)
Vertex Distance from Source
0 10000000
1 0
2 10000000
3 10000000
A utility function to find the vertex with minimum distance value, from the set of vertices not yet included in shortest path tree.
>>> Graph(3).minimum_distance([1, 2, 3], [False, False, True])
0
>>> Graph(0).print_solution([])
Vertex Distance from Source