Spanning trees
Introduction / Definition
A spanning tree of a connected graph contains every vertex and is itself a tree. It selects enough edges to maintain connectivity without cycles. A graph can have many different spanning trees. Spanning trees are fundamental to network design and minimum spanning tree algorithms.
Syntax / Mathematical Form
T is spanning tree of G ⇔ V(T)=V(G) and T is a tree
Detailed Explanation
A spanning tree of a graph with n vertices always has n−1 edges. Removing any selected edge disconnects the spanning tree. Non-tree edges can be added back to form cycles.
Example / Worked Example
Triangle AB, BC, AC has spanning trees {AB,BC}, {AB,AC}, and {BC,AC}.
Output / Result
There are 3 spanning trees.
Important Points / Notes
- Contains all vertices.
- Has n−1 edges.
- No cycles.
- Connected.
Mini Practice Question
List all spanning trees of a triangle.