Assignment6 1
Assignment6 1
#include <stdio.h>
#include <limits.h>
return minIndex;
}
int main() {
int vertices;
int graph[MAX_VERTICES][MAX_VERTICES];
int source;
return 0;
}
#include<stdio.h>
printSolution(dist,vertices);
}
int main()
{
int vertices,graph[MAX_VERTICES][MAX_VERTICES];
printf("Input the adjacency matrix for the graph (use INT_MAX for infinity):
\n");
for (int i = 0; i < vertices; i++)
{
for (int j = 0; j < vertices; j++)
{
scanf("%d", &graph[i][j]);
}
}
/*int graph[V][V] = { {0, 5, 9999, 10},
{9999, 0, 3, 9999},
{9999, 9999, 0, 1},
{9999, 9999, 9999, 0}
};*/
floydWarshall(graph,vertices);
return 0;
}