Prim's algorithm
medium 22 minA minimum spanning tree connects every vertex of a weighted, undirected graph with the least total edge weight.
A minimum spanning tree connects every vertex of a weighted, undirected graph with the least total edge weight.