Spanning subgraphs and minimum spanning trees [00O9]
- October 9, 2026
Definition Spanning subgraph [00OA]
- October 9, 2026
Let G = (V,E) be an unweighted graph with vertices V and edges E. A spanning subgraph of G is a connected graph V,E' where E' \subseteq E.
That is, a spanning subgraph of G is a connected graph with the same vertices as G and a subset of the edges; to make a spanning subgraph of G we pick some edges which connect all the vertices.
Remark Observations about spanning subgraphs [00OB]
- October 9, 2026
A few observations about spanning subgraphs:
- If G is connected, then G is a spanning subgraph of itself.
- If G is disconnected, it has no spanning subgraph, because deleting edges can't make it connected.
- If a spanning subgraph of G contains a cycle, then removing any edge from the cycle results in another spanning subgraph.
Definition Minimum-weight spanning subgraph [00OC]
- October 9, 2026
A minimum-weight spanning subgraph (MWSS) of an undirected, weighted graph G is a spanning subgraph with the smallest possible total weight.
Remark A graph can have multiple MWSS [00OD]
- October 9, 2026
Note that a graph can have multiple minimum-weight spanning subgraphs. For example, consider a triangle graph where all the edges have weight 1. Picking any two of the edges results in a minimum-weight spanning subgraph.
It turns out that if every edge has a unique weight, then the MWSS is unique, although this is not necessarily obvious!
Remark A MWSS does not contain shortest paths! [00OE]
- October 9, 2026
It is worth emphasizing that although a MWSS contains a path between any two vertices, that path may not be the shortest path. The MWSS is guaranteed to have the smallest total weight, but for individual pairs of vertices the path between them may be longer than necessary, because it allows us to connect all the vertices in the most efficient way overall.
As an example, consider a triangle graph T with three edges of weights 2, 2, and 3. To make an MWSS, we obviously want to pick the two edges of weight 2. But notice that the shortest path in T between the two endpoints of the weight-3 edge is of length 3, whereas the path between them in the MWSS has total length 4.
Theorem Every MWSS is a tree [00OF]
- October 9, 2026
In a weighted, undirected graph with positive edge weights, any minimum-weight spanning subgraph must be a tree.
Proof.
- October 9, 2026
Subproof. Every MWSS is a tree ›
- October 9, 2026
Subproof. Every MWSS is a tree ›
- October 9, 2026
Definition Minimum spanning tree [00OG]
- October 9, 2026
Because of the previous theorem, a minimum-weight spanning subgraph is usually referred to as a minimum spanning tree, or MST.