Topic guide 11 · Unit 4 Topic 3 · Graphs and networks
Graphs and networks
A graph is a set of dots, called vertices, joined by lines, called edges. Put numbers on the edges and it becomes a network of roads, ferry routes or walkways, and the questions turn into planning problems: which route, how far and how long.
Every external exam from 2020 to 2025 had a graphs and networks question. Most of the marks go to a definition you can apply, a count you can show and a route written out in full. This guide teaches each idea and then works every QCAA question on the topic, 20 of them, mark by mark from the marking guides. Tick off each skill once you can do it without help.
20
QCAA questions on graphs and networks, 2020 to 2025
54
short-response marks across Paper 1 and Paper 2
8
answers that needed a matrix, a graph or a network drawn
Skills in this topic
Only tick a skill when you could do it in the exam. Your ticks are saved in this browser only.
Part 1
What the exam asks about graphs and networks
Graphs and networks appeared on every external exam from 2020 to 2025. I count 20 questions: nine multiple choice and eleven short response, worth 63 marks, 54 of them short response. 2021 was the only year it appeared as multiple choice alone. Unit 4 Topic 4, trees and minimum spanning trees together with critical path analysis, also has 20 questions, so the two topics are level for the most appearances of any Unit 4 topic.
Paper 1 holds most of it: definitions, counts and a matrix. Paper 2 has had five questions on this topic, worth 28 marks: 2022 Question 4, 2023 Question 5, 2024 Question 2, and 2025 Questions 4 and 5. No Paper 2 question from 2020 to 2025 has had a), b) or c) parts, so nothing is broken into steps for you.
Eight answers needed something drawn or constructed: three adjacency matrices (2022 Q21c, 2023 Q23c, 2024 Q24a), a subgraph (2024 Q24d), a planar redraw (2023 Q20c) and three weighted graphs or network diagrams in Paper 2 (2022 Q4, 2024 Q2, 2025 Q4). So practise drawing graphs as well as reading them.
What the subject reports said
•2020: “closed trail and cycle” was on the list of differences students needed to know better.
•2021: students responded well to “identifying the meaning of the terms ‘planar graph’ and ‘face’”.
•2022: students did well constructing an adjacency matrix, and a network diagram to find a shortest path. The report included a Question 21b) excerpt “to demonstrate statements that refer to the degree of each vertex to appropriately justify the graph as semi-Eulerian”. It also asked for vertices drawn as dots and labelled, the weight clearly written on each edge, and a check “that the number of vertices and edges matches the provided information”.
•2023: adjacency matrices, Euler’s formula, stating the degree of a vertex and describing what feature of a drawing should change to show a graph as planar were all done well.
•2024: adjacency matrices, Euler’s formula and “the identification of a Hamiltonian after constructing a weighted graph” were done well. The report asked for arrows on edges only for directed networks.
•2025: use correct terms such as “tree and cycle”. When you mark a path or trail on a printed diagram, use pen and “draw a thicker line or use a squiggly line or write the vertex sequence”.
Counting is reliable in multiple choice: 82 to 92% of students got the face and vertex counts right in the years with published data. Vocabulary is where the state results drop: 48.4% on the round-robin edge count in 2021, 50.1% on naming a trail in 2024 and 55.4% on describing a graph in 2025.
What the syllabus says
Unit 4 Topic 3 has two sub-topics. Graphs, associated terminology and the adjacency matrix (4 hours):
•Understand the meaning of graph, vertex (node), edge (arc), loop, degree of a vertex, subgraph, simple graph, complete graph, bipartite graph, directed graph (digraph), weighted graph and network.
•Construct a network diagram to represent practical situations, e.g. tracks connecting camp sites in a national park, a social network, a transport network with one-way streets, the results of a round-robin sporting competition.
•Construct an adjacency matrix from a given graph or digraph.
•Construct a graph or digraph from a given adjacency matrix.
Planar graphs, paths and cycles (8 hours):
•Understand the meaning of planar graph and face.
•Apply Euler’s formula to solve problems relating to planar graphs. $v + f - e = 2$ where $v$ is number of vertices, $f$ is number of faces and $e$ is number of edges
•Understand the meaning of walk, trail, path, open walk, open trail, open path, closed walk, closed trail (circuit), closed path (cycle), connected graph and bridge.
•Solve practical problems to determine the shortest path between two vertices in a weighted graph (by trial-and-error methods only).
•Understand the meaning of Eulerian trail, semi-Eulerian graph, Eulerian circuit and Eulerian graph, and the conditions for their existence.
•Solve practical problems involving semi-Eulerian graphs and Eulerian graphs.
•Understand the meaning of Hamiltonian path, semi-Hamiltonian graph, Hamiltonian cycle and Hamiltonian graph.
Two dot points end with “by trial-and-error methods only”. For shortest paths and Hamiltonian problems no algorithm is expected. A systematic list of the possible routes is the method, and the marking guides print a route and its total.
What changed in the 2025 syllabus
The 2019 syllabus, which the 2020 to 2025 papers were written under, asked you to “construct an adjacency matrix from a given graph or digraph” and no more. The 2025 syllabus adds the reverse, “Construct a graph or digraph from a given adjacency matrix”. No past paper has asked it, so Part 3 shows you how.
The vocabulary list is longer. It now names open and closed walks, trails and paths, gives circuit as the second name for a closed trail and cycle for a closed path, and adds Eulerian circuit, Hamiltonian path and Hamiltonian cycle. The 2024 multiple choice answer “trail” would be “open trail” in 2025 language.
What the formula book gives you
Section
Supplied
Graphs and networks
Euler’s formula $v + f - e = 2$
Trigonometry
Pythagoras’ theorem $c^2 = a^2 + b^2$, needed in 2025 Paper 2 Question 5
Sequences
arithmetic sequence $t_n = t_1 + (n - 1)d$, needed in 2023 Paper 2 Question 5
Not in the formula book, so learn these
•What $v$, $f$ and $e$ stand for. The book prints the formula without them. The syllabus defines them as the number of vertices, faces and edges.
•Every definition in the topic: walks, trails and paths, planar, face, bridge, connected, simple, complete, bipartite, directed and weighted.
•The Eulerian conditions: no odd vertices for an Eulerian circuit, exactly two for a semi-Eulerian graph.
•The degree sum: the degrees of a graph add to twice the number of edges.
One formula and a long list of definitions makes this a vocabulary topic. Learn the definitions the way you learn formulas elsewhere.
Part 2
The vocabulary QCAA expects you to use
A graph is a set of vertices (also called nodes) joined by edges (also called arcs). The degree of a vertex is the number of edge ends that meet there. A loop joins a vertex to itself, so it adds 2 to the degree.
Term
Meaning
Loop
An edge from a vertex back to itself. It shows as a small closed curve on one vertex.
Multiple edges
Two or more edges joining the same pair of vertices, often a straight edge and a curved one.
Simple graph
No loops and no multiple edges.
Complete graph
Every vertex joined to every other vertex by exactly one edge. $n$ vertices give $\frac{n(n-1)}{2}$ edges.
Bipartite graph
The vertices split into two groups, and every edge joins one group to the other. Used for allocation problems. A triangle anywhere rules it out.
Directed graph (digraph)
Every edge has a direction, shown by an arrow.
Weighted graph
The edges carry numbers, such as distances, times or costs.
Network
A graph that models a real situation: roads, pipes, ferry routes. Its edges usually carry weights, but QCAA also calls an unweighted graph a “network graph” (2023 Paper 1 Question 23).
Subgraph
Some of the vertices and edges of a graph. Every edge you draw must be in the original.
Connected graph
You can get from any vertex to any other along edges.
Bridge
An edge whose removal disconnects the graph. Cover it and see whether the graph splits.
Isolated vertex
A vertex with no edges, so degree 0. It is still a vertex, so it still counts.
The degree sum
Every edge has two ends, so adding up the degrees counts every edge twice:
$$\text{sum of degrees} = 2 \times \text{edges}$$
Use it as a check after you count degrees, and to find the number of edges when you only know the degrees. A loop gives 2 to its own vertex, so the rule still holds with loops.
A table can be a graph
The syllabus example list includes “the results of a round-robin sporting competition”. A table with a tick for every game played holds the same information as a graph: one vertex per team, one edge per game. The table is symmetric, so each game appears twice.
Count the dots, including the one at the top left that has only one edge. There are 6. The straight edge and the curved edge between the same two vertices are two edges, and neither adds a vertex.
(D) 7 is the number of edges. (A) 3 is the number of faces, since $6 + f - 7 = 2$ gives $f = 3$. (B) 5 misses the vertex of degree 1. 91.8% of students chose (C).
Test each word against the drawing. Every vertex can be reached from every other, so it is connected. Every edge carries a number, so it is weighted. There are no arrows, so it is not directed. The bottom two vertices are joined by two edges (9 and 8), so it is not simple.
Only (A) uses two words that both fit. (C) and (D) both say simple and miss the multiple edge. 55.4% of students chose (A), and 24.8% chose (D).
Answer
(A) connected and weighted
2021 Paper 1 Question 8
Paper 1 · Multiple choice · [1 mark]
A basketball competition has six teams that have completed three rounds of competition as shown.
Each team is a vertex and each game is an edge. There are 18 ticks, but the table is symmetric: the game between the Bears and the Lions is ticked in the Bears row and again in the Lions row. So every game is counted twice:
$$\text{edges} = \frac{18}{2} = 9$$
This is the degree sum at work: six teams, each with degree 3, give $6 \times 3 = 18 = 2 \times 9$.
(D) 18 forgets to halve. (C) 15 is the complete graph, where every team plays every other team. (A) 6 is the number of vertices. 48.4% of students chose (B), and 31.4% chose (D).
Answer
(B) 9 edges
Part 3
Adjacency matrices and the loop rule
An adjacency matrix records a graph as a square table of numbers. There is one row and one column for each vertex, in the same order. The entry in row A, column B is the number of edges joining A and B directly.
•Use the order the question gives, usually “alphabetical order” or “the vertex order listed in the key”. Label the rows and the columns.
•An isolated vertex still gets a row and a column, all zeros.
•Two edges between the same pair of vertices give an entry of 2.
•A loop is entered as 1 on the diagonal (QCAA convention, 2023 Paper 1 Question 23), but it adds 2 to the vertex’s degree.
•For an undirected graph the matrix is symmetric: the entry in row B, column A equals the entry in row A, column B.
Checking a matrix with row sums
For an undirected graph with no loops, each row sums to that vertex’s degree. Add 1 for every loop at that vertex, because the loop is entered as 1 but counts 2. For a digraph the row sum is the number of arcs leaving the vertex.
So check two things before you move on: the matrix is symmetric, and each row sum, plus 1 for each loop, matches the degree you count on the diagram.
Digraphs, and going the other way
For a directed graph, the usual convention is that the entry in row A, column B counts the arcs going from A to B. The matrix is usually not symmetric.
Constructing a graph or digraph from a matrix is new in the 2025 syllabus. Draw one labelled dot per row, then read each entry as that many edges. For an undirected graph read only the entries on and above the diagonal, or you will draw every edge twice. For example:
This matrix is two edges between P and Q, one edge between P and R, and a loop at R. The degrees are P 3, Q 2 and R 3 (the loop counts 2), which add to 8, twice the 4 edges.
Exam questions: adjacency matrices
2020 Paper 1 Question 11
Paper 1 · Multiple choice · [1 mark]
Determine the adjacency matrix that represents this graph.
In options (B), (C) and (D) the rows and columns are in the order Q, R, S, T. Option (A) has only Q, R and S.
T has no edges, but it is still a vertex of the graph, so it needs a row and a column of zeros. The triangle gives a 1 for each of QR, RS and QS, in both directions.
(A) leaves out T. (C) adds an edge from S to T because T is drawn close to S. (D) enters 2 for each edge, which counts each edge from both ends. The 2020 subject report has no multiple choice percentages.
Answer
(B)
2023 Paper 1 Question 23
Paper 1 · Simple familiar · [5 marks]
A network graph is shown.
a) State the degree of vertex E. [1 mark]
b) State the number of edges joining D and E. [1 mark]
c) Construct an adjacency matrix from the graph with the vertices in alphabetical order. [3 marks]
1 mark · correctly completes entries for one row or one column in a 5 × 5 matrix
1 mark · correctly enters 1 for number of edges joining A to A
1 mark · completes adjacency matrix
The first mark may be implied by later working, and the last allows follow-through. The guide accepts equivalent matrices.
Check it: the matrix is symmetric, and rows B, C, D and E sum to their degrees (2, 0, 2, 4). Row A sums to 3, but deg(A) is 4, because the loop is entered as 1 and counts 2 towards the degree. That difference is expected, so do not “correct” it.
Answer
a) 4 · b) 2 · c) the matrix above, with 1 for the loop at A
2024 Paper 1 Question 24
Paper 1 · Simple familiar · [5 marks]
The graph represents six students (A–F). Each edge connects two students who study an identical subject.
a) Construct an adjacency matrix from the graph with the vertices in alphabetical order. [2 marks]
b) From the terms shown, identify all that describe the graph. [1 mark]
bipartite connected directed simple weighted
c) Identify all students who study an identical subject to student C. [1 mark]
d) Draw and label a connected subgraph that contains student E and has three edges and no cycles. [1 mark]
1 mark · correctly completes entries for one row or one column in a 6 × 6 matrix with same horizontal and vertical labels
1 mark · correctly completes adjacency matrix
Check: symmetric, zeros on the diagonal, and the row sums 2, 2, 3, 2, 5, 2 add to 16, twice the 8 edges.
b) No loops or multiple edges, so it is simple. Every student is linked to every other through E, so it is connected. No arrows means not directed and no numbers means not weighted. Triangle A, E, F means the students cannot be split into two groups with every edge going across, so it is not bipartite.
1 mark · correctly identifies simple and connected only
c) The students who study an identical subject to C are the vertices joined to C: B, D and E.
1 mark · correctly identifies B, D and E only
d) Three edges from the graph, joined up, with no closed loop. The guide’s answer is the path F, A, E, C:
The path F, A, E, C, drawn one edge at a time: three edges, connected, and no cycle.
1 mark · correctly draws and labels a connected subgraph that contains student E and has three edges and no cycles
The guide accepts other valid subgraphs, such as AE, FE and EC. I count 31 that work. Three edges that make the triangle A, E, F fail, because that is a cycle.
Answer
a) the matrix above · b) simple, connected · c) B, D and E · d) for example F, A, E, C
Part 4
Planar graphs, faces and Euler’s formula
A planar graph is one that can be drawn so that no edges cross. The marking guide’s definition (2024 Paper 1 Question 17) is “A planar graph can be drawn so that no edges cross each other.” The word can matters. A drawing with crossings can still show a planar graph, if you can redraw it without them.
The faces are the regions the edges divide the page into, and the region outside the graph counts as a face. A triangle drawn on paper has two faces, the inside and the outside. The inside of a loop is a face too.
Euler’s formula links the three counts for a connected planar graph:
$$v + f - e = 2$$
The exam rearranges it, so have all three forms ready:
$$\begin{aligned} f &= 2 - v + e \\ v &= 2 - f + e \\ e &= v + f - 2 \end{aligned}$$
When the count does not give 2
Euler’s formula holds for connected planar graphs. If the count fails, check the outer face, check that no edges cross, and check that the graph is connected.
The 2023 Paper 1 Question 23 graph has an isolated vertex, C. It has 5 vertices, 6 edges and 4 faces (inside the loop, between the two edges joining D and E, the region bounded by A, B and E, and the outside), so $v + f - e = 3$. A graph in two pieces gives 3.
To show a graph is planar when its drawing has crossings, redraw it with one of the crossing edges routed around the outside, as in 2023 Paper 1 Question 20 below. Keep every vertex and every edge, and change only the drawing.
Exam questions: faces and Euler’s formula
2025 Paper 1 Question 5
Paper 1 · Multiple choice · [1 mark]
Identify the number of faces for a planar graph that has 5 edges and 3 vertices.
Substitute into the formula book version and solve for $f$:
$$\begin{aligned} v + f - e &= 2 \\ 3 + f - 5 &= 2 \\ f &= 4 \end{aligned}$$
Three vertices need multiple edges to reach five edges, so this graph is not simple. Euler’s formula still applies, because it is connected and planar.
(A) 8 adds $v$ and $e$. (B) 6 is $v + e - 2$. (D) 2 is $e - v$. 82.6% of students chose (C).
Count the regions: the triangle A, B, C, the region bounded by A, C, B, D and E, the region between the arc and the left and bottom sides of the square, and the outside. That is 4.
Check with Euler’s formula. There are 5 vertices and 7 edges (AE, ED, DB, BA, AC, CB and the arc from A to D):
$$f = 2 - v + e = 2 - 5 + 7 = 4$$
(A) 3 forgets the outside face. (C) 5 is the number of vertices and (D) 7 the number of edges. 81.7% of students chose (B), and 10.0% chose (A).
Answer
(B) 4
2020 Paper 1 Question 13
Paper 1 · Multiple choice · [1 mark]
Which of the following is a planar graph with 5 vertices and 4 faces?
So look for a drawing with 5 vertices and 7 edges. (A) has exactly that, and its faces are the left, right and bottom triangles plus the outside.
(B) has 8 edges and 5 faces. Counting only its 4 enclosed triangles gives 4, which is the forgotten outside face again. (C) has only 4 vertices. (D) is a path with 4 edges and a single face. The 2020 subject report has no multiple choice percentages.
Answer
(A)
2024 Paper 1 Question 17
Paper 1 · Simple familiar · [4 marks]
A planar graph is shown.
a) Define planar graph. [1 mark]
b) How many faces does the graph have? [1 mark]
c) Show that Euler’s formula works for the graph. [2 marks]
a) A planar graph can be drawn so that no edges cross each other.
1 mark · correctly defines a planar graph
The guide accepts equivalent statements, for example “can be embedded in the plane” or “can be drawn so edges only intersect at end points”.
b) Two triangles, the four-sided region on the left, the inside of the loop and the outside make 5 faces.
1 mark · correctly states the number of faces
c) There are 6 vertices and 9 edges. The loop is one edge.
$$\begin{aligned} v + f - e &= 6 + 5 - 9 \\ &= 2 \end{aligned}$$
1 mark · correctly identifies the number of vertices and edges for the graph
1 mark · shows Euler’s formula works for the graph
Showing it works means substituting your own counts and getting 2, with follow-through allowed. If you forget the outer face you get $6 + 4 - 9 = 1$, and if you count the loop’s face but not the loop you get $6 + 5 - 8 = 3$. Either result tells you to recount.
Answer
a) a graph that can be drawn with no edges crossing · b) 5 · c) $6 + 5 - 9 = 2$
2023 Paper 1 Question 20
Paper 1 · Simple familiar · [4 marks]
Graphs 1 and 2 are shown.
a) Show that Euler’s formula applies to graph 1. [2 marks]
b) What feature in the drawing should be changed to represent graph 2 as planar? [1 mark]
c) Redraw graph 2 to represent it as a planar graph. [1 mark]
a) Graph 1 has 4 vertices, 5 edges and 3 faces: the two enclosed triangles and the outside.
$$v = 4, \quad f = 3, \quad e = 5$$
$$v + f - e = 4 + 3 - 5 = 2$$
1 mark · correctly identifies the number of vertices, faces and edges for graph 1
1 mark · applies Euler’s formula to graph 1
b) Two edges cross. Redraw it so that no edges cross.
1 mark · correctly identifies the feature to be changed
The 2023 report included its excerpts “to demonstrate statements that effectively describe that, to represent the graph as planar, its drawing should be changed so that no two edges cross”. Removing an edge would change the graph itself, so keep every edge.
c) Keep the pentagon and one diagonal, and take the other diagonal around the outside.
The crossing diagonal swings out around the pentagon. Every vertex and every edge stays, so it is the same graph, now drawn with no crossings.
1 mark · correctly draws graph 2 as a simple connected graph with seven edges that do not cross and five vertices (one degree 2 vertex, four degree 3 vertices)
The descriptor is your check: still 5 vertices, still 7 edges, the same degrees. The redraw has $f = 2 - 5 + 7 = 4$ faces.
Answer
a) $4 + 3 - 5 = 2$ · b) the crossing edges · c) one diagonal redrawn outside the pentagon
Try it yourself
Count the faces and test Euler’s formula
Switch edges on and off, on the diagram or with the buttons. Every edge is straight and none cross, so each drawing is planar. The shaded regions are the enclosed faces, and the outside adds one more. Split the graph into two pieces and see what happens to $v + f - e$.
edgeswitched offenclosed face
Vertices $v$
Edges $e$
Faces $f$
Pieces
Part 5
Two questions name any route
A walk is any route along edges. Trails and paths are walks with restrictions. Two questions name any route. Ask them in this order.
First: does it start and finish at the same vertex? If it does, it is closed. If not, it is open.
Second: what repeats?
What repeats
Name
An edge repeats
walk
No edge repeats, but a vertex does
trail
No vertex repeats (apart from returning to the start on a closed route)
path
Put the two answers together: open walk, open trail, open path, closed walk, closed trail, closed path.
Two second names
A closed trail is also called a circuit. A closed path is also called a cycle. The 2025 syllabus prints both pairs, “closed trail (circuit), closed path (cycle)”, and the 2020 report listed “closed trail and cycle” as a difference to strengthen.
Every path is a trail, and every trail is a walk. The marking guide wants the most specific name that fits: in 2020 Question 16c) the answer is cycle, even though a cycle is also a closed trail.
Exam questions: naming routes
2024 Paper 1 Question 2
Paper 1 · Multiple choice · [1 mark]
In a graph, an open walk with repeated vertices and no repeated edges is called a
No repeated edges makes it at least a trail. Repeated vertices rule out a path. So it is a trail, an open trail in 2025 wording. A bridge and a loop are single edges, not routes.
50.1% of students chose (D), and 37.0% chose (C), path, missing that the vertices repeat.
Answer
(D) trail
2020 Paper 1 Question 16
Paper 1 · Simple familiar · [3 marks]
Use the graph to identify whether each of the following is a cycle, an open walk, an open trail or a closed trail.
a) It starts at A and finishes at B, so it is open. It travels F to C and then straight back C to F, so edge FC is repeated, which makes it only an open walk.
1 mark · correctly identifies an open walk
b) It starts and finishes at A, so it is closed. The edges AF, FC, CE, EF, FB and BA are all different, but F is visited twice. No repeated edge with a repeated vertex makes a trail, so it is a closed trail (a circuit).
1 mark · correctly identifies a closed trail
c) It is closed, and no edge or vertex repeats apart from returning to A, so it is a cycle.
1 mark · correctly identifies a cycle
The guide’s reasoning, shown in grey as not required, names what repeats in each case, such as “edge repeats: FC = CF”. Writing the reason takes a few seconds and makes your answer easy to check.
Answer
a) open walk · b) closed trail · c) cycle
Part 6
Eulerian trails: count the odd vertices
An Eulerian trail uses every edge exactly once. If it finishes where it started it is an Eulerian circuit, a closed Eulerian trail. A graph with an Eulerian circuit is Eulerian. A graph with an Eulerian trail but no Eulerian circuit is semi-Eulerian.
Eulerian is about edges, and Hamiltonian is about vertices. A postie walking every street once is an Eulerian problem. A courier calling at every address once is a Hamiltonian problem.
For a connected graph, the number of odd-degree vertices decides everything:
Odd vertices
What exists
0
An Eulerian circuit, which starts and finishes at the same vertex (any vertex). The graph is Eulerian.
2
An Eulerian trail, which starts at one odd vertex and finishes at the other. The graph is semi-Eulerian.
4 or more
No Eulerian trail. A route along every edge must travel some edges twice.
The number of odd vertices is always even, because the degrees add to twice the number of edges. Check the graph is connected too. In 2022 Paper 1 Question 6 below, option (D) disconnects the graph.
Justify, don’t assert
The 2022 subject report (Paper 1 Question 21b) included a student excerpt specifically “to demonstrate statements that refer to the degree of each vertex to appropriately justify the graph as semi-Eulerian”.
Asserting: “The graph is semi-Eulerian.”
Justifying: “C and R have degree 3 and B, D, P and W have even degree. Exactly two vertices are odd, so the graph has an Eulerian trail but no Eulerian circuit. It is semi-Eulerian, and the trail runs between C and R.”
State the degrees, state the condition, and apply it to this graph.
Exam questions: Eulerian graphs
2022 Paper 1 Question 6
Paper 1 · Multiple choice · [1 mark]
This semi-Eulerian graph can be changed to an Eulerian graph by
A loop adds 2 to a degree. A has degree 3 (its loop plus AB), B 2, C 2 and D 3 (its loop plus CD). A and D are the two odd vertices. Adding edge AD makes both 4, so every vertex is even and the graph is Eulerian.
(A) changes B from 2 to 4, and A and D stay odd. (B) changes A from 3 to 1, still odd. (D) leaves degrees 3, 1, 1 and 3 and splits the graph in two, so it is not even connected. 84.2% of students chose (C).
Answer
(C) adding an edge between A and D
2022 Paper 1 Question 21
Paper 1 · Simple familiar · [5 marks]
The paths connecting various landmarks in a park are shown.
Key
B
Bus stop
C
Coffee shop
D
Duck pond
P
Playground
R
Rose garden
W
Water feature
a) Identify one cycle that passes through the rose garden and the playground. [1 mark]
b) Identify whether the graph is Eulerian or semi-Eulerian. Justify your response. [2 marks]
c) Construct an adjacency matrix from the graph, using the vertex order listed in the key. [2 marks]
a) Start at R, go to W, across to P, along the top to D and down to R: RWPDR. No vertex repeats apart from the return to R, and it passes through R and P.
1 mark · correctly identifies one cycle
The guide accepts other cycles and starting points, for example RWCPDR, PDRWCP, PDRWP, RWBCPDR and PDRWBCP.
b) Count the degrees, remembering the two double edges (D to P, and R to W): B 2, C 3, D 4, P 4, R 3, W 6. Check: $2 + 3 + 4 + 4 + 3 + 6 = 22 = 2 \times 11$ edges.
Exactly two vertices, C and R, have odd degree and the rest are even. So the graph has an Eulerian trail, between C and R, but no Eulerian circuit. The graph is semi-Eulerian.
1 mark · correctly identifies the graph as semi-Eulerian
1 mark · justifies the decision
If you count each double edge once, you get D 3, P 3, R 2 and W 5, four odd vertices and the wrong answer. One trail that works is RDPDWPCWRWBC.
c) Rows and columns in the key order B, C, D, P, R, W:
1 mark · correctly constructs a valid adjacency matrix with same horizontal and vertical labels
1 mark · correctly determines values in the adjacency matrix
The 2s are the double edges. The diagonal is all 0 because there are no loops, the matrix is symmetric, and each row sums to the degree from part b).
Answer
a) RWPDR (or another cycle) · b) semi-Eulerian, because exactly two vertices are odd · c) the matrix above
2025 Paper 2 Question 5
Paper 2 · [7 marks]
The diagram represents seven walkways joining five benches (A–E) in a park. Walkway distances are shown in metres. The walkway between A and B is perpendicular to the walkway between B and C.
Helen’s usual daily walk involves completing an open Eulerian trail beginning at A. On Tuesday, when one walkway could not be used, Helen used the available walkways to complete a closed Eulerian trail starting at A.
If Helen’s usual daily walk takes 17 minutes, justify whether she completed her walk on Tuesday in under 15 minutes. Assume Helen’s walking speed doesn’t change.
Three ideas are hiding in this question: Pythagoras for the missing walkway, the Eulerian degree condition to find the closed walkway, and speed to turn distance into time. The stem names the Eulerian trails but leaves the other two for you to spot.
The missing walkway. AB and BC are perpendicular, so AC is the hypotenuse of the right-angled triangle ABC:
1 mark · correctly calculates the distance for the walkway between A and C
Use AB and BC, the two sides that meet at the right angle at B. The 140 m walkways belong to triangle CDE and play no part.
The usual walk. Degrees: A 3, B 2, C 4, D 2, E 3. A and E are the only odd vertices, so an open Eulerian trail must start at one and finish at the other. Starting at A, it ends at E, for example ABCDECAE.
1 mark · correctly identifies an open Eulerian trail starting at A as a possible route for Helen’s usual daily walk
The guide accepts other trails from A to E, such as ABCDEACE, ACBAEDCE, ACBAECDE, ACDECBAE and ACEDCBAE, or a trail shown with arrows on the diagram.
Tuesday. A closed Eulerian trail needs every degree even. Closing a walkway lowers the degree at both its ends by 1, so the only walkway that makes A and E even without making anything else odd is AE (105 m). Tuesday’s route is ABCDECA.
1 mark · correctly identifies the closed Eulerian trail starting at A as the route for Helen’s walk on Tuesday
Distances. The usual walk covers every walkway once:
1 mark · provides mathematical reasoning or working to support the decision
$15.4 > 15$, so Helen did not complete her walk on Tuesday in under 15 minutes.
1 mark · provides decision
The decision mark “can only be awarded if prior working supports decision”, so a bare “no” earns nothing. Follow-through is allowed on the distances, and the guide accepts alternative reasoning. One alternative: the 105 m Helen skips takes $105 \div 67 = 1.6$ minutes, and $17 - 1.6 = 15.4$.
Answer
No. Tuesday’s 1034 m took 15.4 minutes, which is more than 15.
Try it yourself
Write the matrix, read the degrees, decide the trail
Tap a cell to change the number of edges between two vertices: 0, 1 or 2. The matrix stays symmetric, as it must for an undirected graph. A dashed cell on the diagonal is a loop. It is entered as 1 but adds 2 to the degree, so the table adds 1 to that row sum, as in Part 3. Then count the odd vertices and decide which trail exists.
odd degreeeven degree
Adjacency matrix, rows and columns A to E
ABCDE
ABCDE
VertexRow sumLoopDegree
Odd vertices:.
Part 7
Shortest paths and Hamiltonian cycles, by listing
A Hamiltonian path visits every vertex exactly once. If it returns to its start it is a Hamiltonian cycle, and a graph with a Hamiltonian cycle is Hamiltonian. A graph with a Hamiltonian path but no Hamiltonian cycle is semi-Hamiltonian.
There is no simple counting test for Hamiltonian graphs like the one for Eulerian graphs, and the syllabus asks for these problems, and for shortest paths, “by trial-and-error methods only”. So the method is a careful list.
How to list routes without missing one
1Draw the network from the table: one labelled dot per vertex, every edge, every weight. Count the vertices and edges against the table.
2Start from the vertex the question names. Look for forced moves: a vertex with only two edges uses both of them in any Hamiltonian cycle.
3Branch at each choice and write each complete route as a vertex sequence with its total.
4A cycle and its reverse are the same trip, so list only one of each pair.
5Pick the smallest total, then finish the question: the time, the cost or the decision it asked for.
For a shortest path, list routes from the start to the finish, most promising first, and abandon a route as soon as its running total passes your best complete route.
Exam questions: routes in weighted networks
2022 Paper 2 Question 4
Paper 2 · [5 marks]
The table shows the current road length (in kilometres) between six towns.
Manon
Veria
Bolint
Farra
Recen
Alin
Manon
16
34
—
—
33
Veria
12
—
—
15
Bolint
—
10
—
Farra
15
23
Recen
15
Alin
The government plans to build a direct road between Manon and Farra.
Use a network diagram to determine the length of the direct road if it is to be 4 km shorter than the length of the current shortest road route between Manon and Farra.
Each number in the table is a road and each dash means no direct road. That gives 6 towns and 9 roads.
Towns by initial. The shortest route from Manon to Farra is in orange, traced from M with its running length.
1 mark · correctly represents the connected towns as a network
1 mark · correctly includes lengths on the network
List the routes from M to F, shortest first:
Route
Length (km)
MVBRF
16 + 12 + 10 + 15 = 53
MVAF
16 + 15 + 23 = 54
MAF
33 + 23 = 56
MBRF
34 + 10 + 15 = 59
MVARF
16 + 15 + 15 + 15 = 61
Every other route is longer still.
1 mark · determines shortest current path
$$16 + 12 + 10 + 15 = 53\ \text{km}$$
1 mark · identifies length of shortest path
$$53 - 4 = 49\ \text{km}$$
1 mark · determines new road length
Follow-through applies to the last three marks, and the shortest path mark can be implied by later working. MVAF at 54 km is only 1 km longer, which is why a careful list matters.
Answer
The new road will be 49 km long.
2024 Paper 2 Question 2
Paper 2 · [4 marks]
The table shows the travel time (minutes) between five islands in the Torres Strait for a ferry service.
Waiben
Palilug
Ngurapai
Keriri
Gealug
Waiben
—
18
—
14
Palilug
—
25
16
Ngurapai
20
28
Keriri
—
Gealug
Construct a weighted graph and use it to calculate the total travel time for a ferry that completes a Hamiltonian cycle beginning at Waiben.
Six numbers in the table means six edges. Waiben, Palilug and Keriri each have only two edges, so a Hamiltonian cycle must use both edges at each of them. That already closes the cycle: Waiben, Gealug, Palilug, Keriri, Ngurapai and back to Waiben. The 28-minute edge between Ngurapai and Gealug is the only one left out.
The Hamiltonian cycle from Waiben is in orange, traced in order with its running time.
1 mark · correctly constructs a graph showing all 5 labelled vertices and all 6 edges
1 mark · correctly shows weights on all 6 edges
1 mark · identifies a Hamiltonian cycle beginning at Waiben
The guide also accepts the reverse, WNKPGW, the cycle shown on the graph, and the time as 1 h 33 min. The 2024 report’s excerpt was chosen for “listing the vertex sequence and showing the sum calculation for the total travel time”.
Answer
WGPKNW, total travel time 93 minutes
2025 Paper 2 Question 4
Paper 2 · [5 marks]
Marli drives a round trip in which she leaves a storage warehouse, S, refills vending machines at four venues, T, U, V and W, and returns to the storage warehouse. The tables show the distance (km) between the locations and the number of vending machines at each venue.
Road connecting locations
Distance (km)
S–T
3
S–U
12
S–V
10
S–W
9
T–U
4
T–V
7
T–W
5
U–V
8
U–W
2
V–W
6
The paper prints this table across the page. It is turned on its side here so it fits a phone.
Venue
T
U
V
W
Number of vending machines
2
3
4
3
Marli is paid $25 per vending machine and a driving allowance of 80 cents per kilometre based on the minimum total distance for a round trip.
Use a weighted graph representing the road network to calculate Marli’s total payment.
Every pair of locations has a road, so the graph is complete: 5 vertices and 10 edges.
All ten roads. The shortest round trip, STUWVS, is in orange, traced from S with its running distance.
1 mark · correctly represents the road network in a graph showing all 10 edges with correct weights
A round trip from S that visits T, U, V and W once each is a Hamiltonian cycle. Each cycle and its reverse are the same trip, which leaves 12 to check:
Follow-through is allowed from the closed walk onwards. The guide accepts the closed walk marked on the graph, and the payment in other units, such as 32 000 cents.
Answer
Marli’s total payment is $320.
2023 Paper 2 Question 5
Paper 2 · [7 marks]
At 9:00 am, a security guard begins their patrol of the eight work sites represented in the network diagram, starting and ending at site A. They drive at 40 km/h on the roads between sites and check every site once for 15 minutes.
The length (km) of each road corresponds to the terms of the arithmetic sequence $t_n = t_1 + 2(n - 1)$, where $t_1 = 1$.
Determine the earliest possible time the security guard can finish their patrol, and identify the route they must follow.
The guard checks every site once and starts and ends at A, so the route is a Hamiltonian cycle. All eight vertices have odd degree, so there is no Eulerian trail, which confirms this is about visiting sites, not covering roads.
First turn the labels into lengths. With $t_1 = 1$ and a common difference of 2:
The eight sites include A, so the checking time is $8 \times 15$ minutes. Follow-through is allowed after the cycle, several marks may be implied by later working, and the guide accepts “2 h 39 min after 9:00 am” for the last mark.
Answer
11:39 am, along AGBCDHEFA (or the reverse)
Part 8
Where the marks go in network questions
The marking guides give one mark per dot point, and most dot points are steps on the way to the answer. A correct final answer with no working can lose marks, and a wrong answer with clear working can keep most of them.
What the guides reward
What you write
Where the guide or report rewards it
Every vertex labelled and every edge drawn
2024 P2 Q2: “all 5 labelled vertices and all 6 edges”. 2025 P2 Q4: “all 10 edges with correct weights”.
Every weight written on its edge
2022 P2 Q4 and 2024 P2 Q2 each gave a separate mark for the weights.
The route as a vertex sequence
A mark for the route itself in 2022 P2 Q4, 2023 P2 Q5, 2024 P2 Q2 and 2025 P2 Q4 and Q5. A route clearly marked on the diagram is accepted.
The sum written out
The 2024 report praised “showing the sum calculation for the total travel time”.
Degrees named in a justification
2022 P1 Q21b: one mark for the decision and one for the justification.
The decision in words, after the working
2025 P2 Q5: the decision mark “can only be awarded if prior working supports decision”.
Follow-through and implied marks
Most later marks say “Allow FT marks for error/s in prior working”. If your shortest path is wrong but you subtract 4 from it correctly, you still get the last mark in 2022 Paper 2 Question 4. Several marks “may be implied by subsequent working”, so a correct total shows you found the right road lengths. Never stop halfway, and never rub out working.
Drawing for the scanner
•Draw vertices as dots, labelled with the letters or names the question uses (2022 report).
•Put arrows only on directed edges (2024 report). A road network with two-way roads gets plain lines.
•Mark a route in pen with a thicker or squiggly line, or write the vertex sequence (2025 report). Highlighter does not scan clearly.
•Check the number of vertices and edges against the table before you start on the route (2022 report).
•If you make a mistake, rule a single diagonal line through it and use the additional response space. The Paper 2 questions that asked for a diagram all printed this instruction.
Units, times and rounding
Answer in context with the unit the question used: km, minutes or dollars. A time can be given in another unit (2024 accepted 1 h 33 min for 93 minutes), and a time of day needs am or pm. Keep full calculator precision and round only the final answer, as the 2025 guide did with 15.4 minutes.
Game plan
Your game plan for graphs and networks
Use this on any question in the topic, from a 1-mark count to a 7-mark Paper 2 question.
1Decide what the question counts. Every road, street or walkway once is Eulerian (edges). Every site, venue or island once is Hamiltonian (vertices). From one place to another as cheaply as possible is a shortest path.
2Draw or redraw the graph: one labelled dot per vertex, every edge, every weight. Check the number of vertices and edges against the table or text.
3Write down the degree of every vertex, with 2 for each loop and both edges of a double edge, and check that the degrees add to twice the number of edges.
4Apply the right test. For Eulerian questions, count the odd vertices. For faces, use Euler’s formula and include the outside face. For routes, list them systematically.
5For a matrix, put the rows and columns in the order the question asks, enter a loop as 1, and check the matrix is symmetric.
6Write every route as a vertex sequence and every total as a written sum.
7Finish with calculate, compare, conclude: the number, the comparison and the decision in words, with units.
Trees and spanning trees build on this vocabulary in Topic guide 12, and directed networks come back in Topic guide 13 on critical path analysis.
I wrote these four to the QCAA format and checked every answer in Python. Question 4 is built like the 7-mark questions at the end of Paper 2, so attempt it as one question with no parts and give yourself about 17 minutes.
Question 1 of 4
Skill 3: Euler’s formula · Simple familiar · [1 mark]
A connected planar graph has 9 edges and 6 faces. The number of vertices is
The formula book gives $v + f - e = 2$. Rearrange for $v$:
$$v = 2 - f + e = 2 - 6 + 9 = 5$$
A graph like this exists: five vertices with every pair joined except one has 9 edges and 6 faces.
(A) 3 is $e - f$. (C) 11 is $e + 2$, which leaves out the faces. (D) 17 is $f + e + 2$.
In a graph with vertices P, Q, R, S and T, the edges are PQ, PR, PS, QR, QS, RS, RT and ST.
a) Determine the degree of each vertex. [2 marks]
b) Provide a justified decision about whether an Eulerian trail exists, and if so, state where it must begin and end. [2 marks]
a) Count the edges at each vertex: P 3, Q 3, R 4, S 4, T 2. Check: $3 + 3 + 4 + 4 + 2 = 16 = 2 \times 8$ edges.
1 mark · correct degree for at least three vertices
1 mark · correct degree for all five vertices
b) The graph is connected. Exactly two vertices, P and Q, have odd degree. A connected graph with exactly two odd vertices has an Eulerian trail but no Eulerian circuit, so an Eulerian trail exists.
1 mark · states the condition and applies it to the degrees, naming P and Q as the odd vertices
It must begin at one odd vertex and end at the other: from P to Q, or from Q to P. One example is PRTSRQSPQ.
1 mark · decides that a trail exists and states that it starts at P and ends at Q, or the reverse
“An Eulerian trail exists” with no degrees earns at most the second mark of b).
Answer
a) P 3, Q 3, R 4, S 4, T 2 · b) yes, from P to Q (or Q to P), because exactly two vertices are odd
Five weather stations are labelled V, W, X, Y and Z. Direct data links exist between V and W, V and X, W and X, W and Y, X and Y, X and Z, and Y and Z.
a) Construct the adjacency matrix for this network. [3 marks]
b) Determine the number of edges and verify your answer using the sum of the degrees. [2 marks]
A council inspector must drive along every road in a small estate. The estate has six intersections, J, K, L, M, N and P. Roads join J to K, J to L, K to L, K to M, L to N, M to N, M to P and N to P. Road lengths in kilometres are JK 1.2, JL 0.9, KL 0.6, KM 1.5, LN 1.1, MN 0.8, MP 1.4 and NP 0.7.
The inspector drives at an average of 24 km/h and must begin and end at the depot, which is at intersection J.
Sione claims the inspection can be completed in under 21 minutes. Evaluate the reasonableness of Sione’s claim.
The stem never says Eulerian, so the degree count is yours to start. Driving every road and returning to J is a closed route through every edge.
Degrees: J 2, K 3, L 3, M 3, N 3, P 2.
1 mark · determines the degree of every intersection
A closed route that uses every road exactly once needs every degree even. Four intersections have odd degree, so no such route exists, and the inspector must drive at least one road twice.
1 mark · uses the four odd vertices to conclude that at least one road must be repeated
1 mark · calculates the time to drive every road once
20.5 minutes is under 21, so the total length alone does not settle the claim. The repeated road does. The shortest road is KL, 0.6 km, so the drive is at least:
1 mark · adds at least the shortest road to the distance
1 mark · calculates the minimum possible time
$22 > 21$, so the inspection takes at least 22 minutes and Sione’s claim is not reasonable.
1 mark · evaluates the claim in context, supported by the working
The best possible route repeats KL and MN, 9.6 km and 24 minutes. You do not need it, because 22 minutes already decides the claim.
Answer
Not reasonable: at least one road must be driven twice, so the inspection takes at least 22 minutes.
Sources: QCAA General Mathematics external assessment papers (Paper 1 multiple choice and short response, Paper 2) and marking guides, 2020 to 2025. General Mathematics 2025 v1.3 general senior syllabus, Unit 4 Topic 3, with the 2019 v1.2 syllabus for comparison. QCAA General Mathematics subject reports, 2020 to 2025. General Mathematics formula book 2025. Every numerical answer and every graph count was checked in Python against the published marking guides.