Properties of trees
Introduction / Definition
Trees have several equivalent characterizations that make them easy to analyze. A tree is connected and acyclic, has n−1 edges, and has a unique simple path between every pair of vertices. Removing any edge disconnects it. Adding any new edge creates a cycle.
Syntax / Mathematical Form
For a tree T: |E|=|V|−1; unique path between every pair
Detailed Explanation
These properties are mutually connected. If a graph with n vertices is connected and has n−1 edges, it cannot contain a cycle. Conversely, removing an edge from a tree creates two components.
Example / Worked Example
A tree with 6 vertices has 5 edges.
Output / Result
|E|=5.
Important Points / Notes
- Every tree has at least two leaves when n>1.
- Edge removal disconnects a tree.
- Adding an edge creates one cycle.
Mini Practice Question
How many edges does a tree with 10 vertices have?