Prim's Algorithm

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


Time Complexity:O(ElogV)

Input:

Enter the number of vertices in your graph: