Network Travels
Theory
A path is a route along the edges of a network that never repeats a vertex, and a tree is a connected network with no closed loops. This Year 11 Mathematics Standard page shows how to check and count paths, why a tree with \(n\) vertices has \(n-1\) edges, how to find and count spanning trees, and what makes a spanning tree a minimum spanning tree.
A route moves from vertex to vertex along the edges of a network. It is written by listing the vertices in order, such as \(A\)–\(B\)–\(D\). Every step must be an edge of the network.
A path is a route in which no vertex is repeated. It never visits the same vertex twice. A path does not have to use every edge or visit every vertex, and it does not return to where it started.
A closed loop (also called a cycle) is a route that travels around and comes back to its starting vertex without going back along an edge, such as \(A\)–\(B\)–\(C\)–\(A\). Do not confuse it with a loop, which is a single edge from a vertex back to itself.
A network is connected if you can travel along edges between any two of its vertices. If some vertices are cut off from the others, it is not connected.
A tree is a connected network with no closed loops. Every tree with \(n\) vertices has exactly \(n-1\) edges. Adding any edge to a tree makes a closed loop; removing any edge splits it into two pieces.
A spanning tree of a connected network is a tree, made from edges of the network, that includes every vertex of the network. "Spanning" means it reaches every vertex. All the spanning trees of a network have the same number of edges, \(n-1\), but they can use different edges.
In a weighted network, the total weight of a spanning tree is the sum of the weights of its edges. A minimum spanning tree is a spanning tree whose total weight is as small as possible. (A step-by-step method for finding one is in Minimum Spanning Trees and Connector Problems.)
For a tree with \(n\) vertices:
A spanning tree of a connected network with \(n\) vertices also has \(n-1\) edges, so:
A tree with \(n\) vertices has \(n-1\) edges, so its sum of degrees is \(2(n-1)\). For example, a tree with \(6\) vertices has \(5\) edges and degree sum \(2\times 5=10\).
Is a route a path?
- Check every step is an edge of the network. If one step is not an edge, it is not a route along the network.
- Check for repeated vertices. If any vertex appears twice, it is not a path.
- It does not need to visit every vertex or return to the start.
Counting paths from one vertex to another
- Start at the first vertex and choose each possible first step in turn.
- Follow every way to keep going without repeating a vertex until you reach the end vertex.
- List the paths in order (shortest first is easiest) and count them.
Is it a tree?
- Connected? Can you get from every vertex to every other vertex?
- No closed loops? Can you travel around and return to a vertex without going back along an edge? If so, it is not a tree.
- Count check: a tree with \(n\) vertices has exactly \(n-1\) edges. Too many edges means a closed loop. The right count alone is not enough: the network must also be connected.
Spanning trees
- Edges needed: \(n-1\), where \(n\) is the number of vertices of the network.
- Check a set of edges: it must use edges of the network, include every vertex, have \(n-1\) edges and have no closed loop.
- Minimum spanning tree from a list: add the weights of each spanning tree and choose the smallest total.
(i) \(F\)–\(G\)–\(J\)–\(K\)
(ii) \(G\)–\(F\)–\(H\)–\(J\)–\(G\)–\(K\)
(iii) \(F\)–\(J\)–\(K\)
(i) Steps: \(FG,\ GJ,\ JK\) are all edges. Vertices \(F,\ G,\ J,\ K\) are all different.
\(F\)–\(G\)–\(J\)–\(K\) is a path. (It does not need to visit \(H\).)
(ii) Steps: \(GF,\ FH,\ HJ,\ JG,\ GK\) are all edges. But \(G\) appears twice (1st and 5th).
A path cannot repeat a vertex, so this route is not a path.
(iii) \(FJ\) is not an edge: there is no line joining \(F\) and \(J\).
\(F\)–\(J\)–\(K\) is not a route along the network, so it is not a path.
(iii) A tree has \(7\) vertices. What is the sum of the degrees of its vertices?
(i) A tree must be connected and have no closed loops.
Network 1 has a closed loop around its triangle, so it is not a tree.
Network 3 has \(5\) vertices and \(4\) edges, but it is not connected (the bottom edge is separate) and it has a closed loop. Not a tree.
Network 2 is connected with no closed loops (\(5\) vertices, \(4\) edges).
Network 2 is the tree.
(ii) A tree with \(n\) vertices has \(n-1\) edges:
| \(15-1\) | \(=\) | \(14\) |
The tree has 14 edges.
(iii) The tree has \(7-1=6\) edges. Each edge adds 2 to the sum of the degrees:
| \(2\times 6\) | \(=\) | \(12\) |
The sum of the degrees is 12.
(i) List the paths by their first step, never repeating a vertex:
Direct: \(W\)–\(Z\)
First step \(WX\): \(W\)–\(X\)–\(Z\), \(W\)–\(X\)–\(Y\)–\(Z\)
First step \(WY\): \(W\)–\(Y\)–\(Z\), \(W\)–\(Y\)–\(X\)–\(Z\)
There are 5 paths. (The curved edge \(WZ\) passes below \(Y\) without meeting it.)
(ii) The network has \(6\) vertices, so a spanning tree has \(6-1=5\) edges. It has \(7\) edges, so leave out \(7-5=2\): one from each closed loop.
Triangle \(PQR\): 3 choices (leave out \(PQ\), \(QR\) or \(RP\)).
Loop \(RSTU\): 4 choices (leave out \(RS\), \(ST\), \(TU\) or \(UR\)).
| \(3\times 4\) | \(=\) | \(12\) |
There are 12 spanning trees.
(ii) Four spanning trees are listed. Which one is a minimum spanning tree?
A. \(VW,\ WY,\ YZ,\ XZ\)
B. \(VX,\ WX,\ WY,\ YZ\)
C. \(VX,\ VW,\ XY,\ YZ\)
D. \(VX,\ XZ,\ YZ,\ WY\)
(i) A spanning tree on \(5\) vertices has \(5-1=4\) edges. The network has \(7\) edges.
| \(7-4\) | \(=\) | \(3\) |
3 edges must be removed.
(ii) Find the total weight of each spanning tree:
| \(\text{A}\) | \(:\) | \(6+7+3+8=24\) |
| \(\text{B}\) | \(:\) | \(4+5+7+3=19\) |
| \(\text{C}\) | \(:\) | \(4+6+9+3=22\) |
| \(\text{D}\) | \(:\) | \(4+8+3+7=22\) |
The smallest total is \(19\). B (\(VX,\ WX,\ WY,\ YZ\)) is the minimum spanning tree, with total length 19 m.
Check: it reaches all \(5\) buildings with \(4\) edges and has no closed loop.
Common pitfalls
Frequently asked questions
What is a path in a network?
A path is a route along the edges of a network in which no vertex is repeated. It does not have to use every edge or visit every vertex.
What is a tree in networks?
A tree is a connected network with no closed loops. A tree with \(n\) vertices has \(n-1\) edges.
How many edges does a tree have?
One fewer than the number of vertices: \(n-1\). A tree with \(9\) vertices has \(8\) edges, and a tree with \(12\) edges has \(13\) vertices.
What is a spanning tree?
A tree made from edges of a network that includes every vertex of the network. It connects all the vertices and has no closed loops.
What is the difference between a spanning tree and a minimum spanning tree?
Any tree that reaches every vertex is a spanning tree. In a weighted network, a minimum spanning tree is a spanning tree whose total weight (the sum of its edge weights) is as small as possible.
How do you count spanning trees?
Each closed loop must lose one edge. A single closed loop with \(k\) edges has \(k\) spanning trees. For two closed loops that share only a vertex, multiply the choices for each loop, such as \(3\times 4=12\).