Resources For Teachers For Tutors For Students & Parents AI New Books Pricing
Year 11 (2026) Maths Standard (2026) Networks, Paths and Trees

Network Travels

20 practice questions 3 video lessons Theory + worked examples
Practice 20 questions
Practice questions

Every question with a fully worked solution.

Start practising
Watch 3 video(s)
  • Network Travels - Video - Travelling a Network 1 Watch
  • Network Travels - Video - Travelling a Network 2 Watch
  • Network Travels - Video - Travelling a Network 3 Watch
Create a free accountTrack your progress and save your work as you go.
Create free account

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.)

A path in a networkVertices A to F. Edges AB, AC, BC, BD, CE, DE, DF and EF. The path A, C, B, D, F is highlighted in orange; it does not visit E. A B C D E F
\(A\)–\(C\)–\(B\)–\(D\)–\(F\) is a path: every step is an edge and no vertex is repeated. It does not visit \(E\), and it does not need to. \(A\)–\(B\)–\(D\)–\(E\)–\(C\)–\(B\) is not a path, because \(B\) is repeated.
A tree, a network with a closed loop, and a network that is not connectedLeft: five vertices joined by four edges with no closed loop, labelled tree. Middle: a network with a four-sided closed loop highlighted in orange, labelled closed loop. Right: a network in two separate pieces, labelled not connected. tree closed loop not connected
Only the left network is a tree: it is connected, has no closed loop, and has \(5\) vertices and \(5-1=4\) edges. The middle one has a closed loop; the right one is not connected.

For a tree with \(n\) vertices:

\[\text{Number of edges}=n-1\]
number of edges equals n minus 1
\[\text{Number of vertices}=\text{number of edges}+1\]
number of vertices equals number of edges plus 1

A spanning tree of a connected network with \(n\) vertices also has \(n-1\) edges, so:

\[\text{Edges to remove}=\text{edges in network}-(n-1)\]
edges to remove equals edges in the network minus the quantity n minus 1

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\).

Counting spanning trees. A spanning tree must break every closed loop by leaving out one of its edges. If a network is a single closed loop with \(k\) edges, it has \(k\) spanning trees (leave out any one edge). If it is made of two closed loops that share only a vertex, choose an edge to leave out of each loop and multiply: a 3-edge loop and a 4-edge loop give \(3\times 4=12\) spanning trees.
Total weight of a spanning tree \(=\) the sum of the weights of its edges. The minimum spanning tree is the one with the smallest total.

Is a route a path?

  1. Check every step is an edge of the network. If one step is not an edge, it is not a route along the network.
  2. Check for repeated vertices. If any vertex appears twice, it is not a path.
  3. It does not need to visit every vertex or return to the start.

Counting paths from one vertex to another

  1. Start at the first vertex and choose each possible first step in turn.
  2. Follow every way to keep going without repeating a vertex until you reach the end vertex.
  3. List the paths in order (shortest first is easiest) and count them.

Is it a tree?

  1. Connected? Can you get from every vertex to every other vertex?
  2. 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.
  3. 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

  1. Edges needed: \(n-1\), where \(n\) is the number of vertices of the network.
  2. Check a set of edges: it must use edges of the network, include every vertex, have \(n-1\) edges and have no closed loop.
  3. Minimum spanning tree from a list: add the weights of each spanning tree and choose the smallest total.
Example 1 — Path or not?
For the network shown, decide whether each route is a path.
(i) \(F\)–\(G\)–\(J\)–\(K\)
(ii) \(G\)–\(F\)–\(H\)–\(J\)–\(G\)–\(K\)
(iii) \(F\)–\(J\)–\(K\)
Network with vertices F, G, H, J and KF and G across the top, H and J across the bottom, K on the right. Edges FG, FH, GH, GJ, HJ, GK and JK. F G H J K
Solution

(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.

Example 2 — Trees
(i) Which of the three networks shown is a tree?
Three networksNetwork 1: five vertices with a triangle and two edges hanging from it. Network 2: five vertices, four edges, no closed loop. Network 3: a triangle and, separately, one edge joining two vertices. Network 1 Network 2 Network 3
(ii) A tree has \(15\) vertices. How many edges does it have?
(iii) A tree has \(7\) vertices. What is the sum of the degrees of its vertices?
Solution

(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\)
15 minus 1 equals 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\)
2 times 6 equals 12

The sum of the degrees is 12.

Example 3 — Counting paths and spanning trees
(i) How many different paths are there from \(W\) to \(Z\) in this network?
Network with vertices W, X, Y and ZW on the left, X at the top, Y at the bottom, Z on the right. Edges WX, WY, XY, XZ, YZ, and a curved edge WZ passing below Y. W X Y Z
(ii) How many different spanning trees does this network have?
Network made of a triangle and a four-sided loop sharing vertex RTriangle P, Q, R on the left with edges PQ, QR and RP. Four-sided loop R, S, T, U on the right with edges RS, ST, TU and UR. P Q R S T U
Solution

(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\)
3 times 4 equals 12

There are 12 spanning trees.

Example 4 — Choosing a minimum spanning tree
The network shows the lengths, in metres, of possible cable runs between five buildings \(V\), \(W\), \(X\), \(Y\) and \(Z\).
Weighted network of cable lengthsVertices V, W, X, Y and Z. Edge weights in metres: VW 6, VX 4, WX 5, WY 7, XY 9, XZ 8, YZ 3. 6 4 5 7 9 8 3 V W X Y Z
(i) How many edges must be removed from the network to leave a spanning tree?
(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\)
Solution

(i) A spanning tree on \(5\) vertices has \(5-1=4\) edges. The network has \(7\) edges.

\(7-4\)\(=\)\(3\)
7 minus 4 equals 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\)
A 24, B 19, C 22, D 22

The smallest total is \(19\). B (\(VX,\ WX,\ WY,\ YZ\)) is the minimum spanning tree, with total length 19 m.

Minimum spanning tree highlightedThe edges VX 4, WX 5, WY 7 and YZ 3 are highlighted in orange. The other edges VW, XY and XZ are dashed grey. 6 4 5 7 9 8 3 V W X Y Z

Check: it reaches all \(5\) buildings with \(4\) edges and has no closed loop.

Common pitfalls

A path never repeats a vertex. Every step following an edge is not enough. If any vertex appears twice, as in \(S\)–\(P\)–\(Q\)–\(R\)–\(P\), the route is not a path.
A path does not have to visit every vertex. It only goes from one vertex to another along edges. It does not have to use every edge, visit every vertex or come back to the start.
The right number of edges is not enough. A network with \(n\) vertices and \(n-1\) edges is a tree only if it is also connected. Check both: connected and no closed loops.
"Spanning" means every vertex. A spanning tree must include every vertex of the network, but it does not use every edge. A spanning tree on \(n\) vertices always has \(n-1\) edges.
Loop or closed loop? A loop is one edge from a vertex back to itself. A closed loop is a route around several edges back to the start. A tree has neither.

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\).