About the algorithm:
Prim's algorithm is a minimum spanning tree algorithm that takes a graph as input and finds the subset of the edges of that graph which
Enter the number of vertices in your graph: