code
code
h>
#include <stdlib.h>
if (x != y) {
mst[e++] = next_edge;
Union(subsets, x, y);
}
}
int main() {
int V, E;
printf("Enter number of vertices and edges: ");
scanf("%d %d", &V, &E);
kruskalMST(graph);
return 0;
}