Most of these trees had a preferred root, and a preferred direction (away from the root).
A tree is a connected, acyclic graph.
By default, a generic tree is undirected. To understand this definition, we need to be precise about the meaning of acyclic.
Draw an example of a walk that is not a path.
Draw an example of a closed walk that is not a cycle.
What is a closed path? Can you draw an example?
Draw a tree with 6 vertices. How many edges does it have?
How many edges does a tree with \(n\) vertices have? Can you prove your answer?
Table #1 | Table #2 | Table #3 | Table #4 | Table #5 | Table #6 | Table #7 |
---|---|---|---|---|---|---|
Bri | Logan | Kristen | Trevor | Claire | Graham | Blake |
Andrew | Jordan | Levi | Josiah | Ethan | James | Nathan |
Jack | Grace | Isaac | Talia | Kevin | Drake | John |
Lemma. Suppose \(T\) is a tree, and \(u\) and \(v\) are two vertices in \(T\). Then there is a unique path from \(u\) to \(v\).
The converse of the Lemma is also true: If \(G\) is a graph with the property that every pair of vertices are joined by a unique path, then \(G\) is a tree.
A graph is called weighted if there is an assignment of real numbers (weights) to the edges. For example,
Given a weighted graph \(G\), a minimum spanning tree \(T\) is a subgraph of \(G\) such that:
Why do the above two conditions guarantee that \(T\) is a tree?
Draw an example of a weighted graph with two different minimum spanning trees (if possible).
Draw an example of a weighted graph with a unique smallest edge \(e\), such that the minimum spanning tree does not contain \(e\) (if possible).
Lemma. If all edge weights in a connected graph \(G\) are distinct, then \(G\) has a unique minimum spanning tree.