#include using namespace std; #define ROW 7 #define COL 7 #define infi 5000 //infi for infinity class prims { int graph[ROW][COL],nodes; public: prims(); void createGraph(); void primsAlgo(); }; prims :: prims() { for(int i=0;i>nodes; cout<<"\n\nEnter Adjacency Matrix : \n"; for(i=0;i>graph[i][j]; //Assign infinity to all graph[i][j] where weight is 0.for(i=0;i graph[i][j]) { min=graph[i][j]; x=i; y=j; } } } } } selected[y]=true; cout<<"n"< "<