#include int main() { int cost[10][10],visited[10]={0},i,j,n,no_e=1,min,a,b,min_cost=0; printf("Enter number of nodes "); scanf("%d",&n); printf("Enter cost in form of adjacency matrix\n"); //input graph for(i=1;i<=n;i++) { for(j=1;j<=n;j++) { scanf("%d",&cost[i][j]); // cost is 0 then initialize it by maximum value if(cost[i][j]==0) cost[i][j]=1000; } } // logic for finding minimum cost spanning tree visited[1]=1; // visited first node while(no_e