Minimum Spanning Trees: Kruskal and Prim
A spanning tree of a connected undirected graph G=(V,E) is a subset of E that connects all vertices and forms a tree (|V|-1 edges, no cycle). A minimum spanning tree (MST) is a spanning tree of minimum total edge weight.