Prim's Algorithm
Choose a starting vertex
Add the edge connect to the vertex into queue
Find the edge with minimum weight and that is not yet in the tree
Add the edge and the vertex to the tree
Repeat steps above
For more details:
GeeksForGeeks
.