Harsh Vaghasiya 200399108 CS340 - Assignment 4 (B)
Adjecent Node = COST Value NON-Adjecent Node = 999 (Infinity)
/************ Steps To Follow ******************/
-
Enter The no. of vertices we have in our graph (Matrix in our case for Ease of Coding)
-
Then enter the Cost matrix along cost value of the node if its adjacent or 999 for viceversa.
-
Press Enter after cost matrix.
-
After then it initialize the Start Vertice of path.
-
Then the output will be print for each vertices along with minimum path and the minimum cost.