In the Bridges of Königsberg problem, we were trying to find a route that used every edge exactly once.
Graph theory has names for different kinds of routes through a graph.
Routes through a graph
Consider the following graph:
💡
A path follows edges of a graph without visiting the same vertex twice.
Example: A → B → C → D
A cycle returns to its starting vertex, without repeating any other vertex.
Example: A → B → C → A
A trail follows edges without using the same edge twice. It may visit the same vertex more than once.
Example: C → A → B → C → D → E
An Euler trail is a trail that uses every edge of the graph exactly once. It does not have to finish where it started.
Example: C → A → B → C → D → E → F → D
An Euler circuit is an Euler trail that finishes at the same vertex where it started.
The graph above has an Euler trail, but not an Euler circuit.
Example on a different graph: A → B → C → D → A
What type of route is it?
Here are three routes on the same graph. Look at the highlighted edges and decide what kind of route each one is.
Route 1
A → B → C → D
Route 2
A → B → C → D → E → A
Route 3
A → B → C → D → E → A → C
Build a route
Click any vertex to choose where to start. Then click a connected vertex to travel along an edge. Your route will be highlighted as you go.
💡
The degree rule
In the previous lesson, we discovered that odd and even degrees tell us whether an Euler trail is possible.
For a connected graph:
- Zero odd-degree vertices → the graph has an Euler circuit.
- Two odd-degree vertices → the graph has an Euler trail, but not an Euler circuit.
- More than two odd-degree vertices → the graph has no Euler trail.
Practice puzzles
Puzzle 1 – Use the rule
A connected graph has vertex degrees:
4, 2, 2, 2, 2
Without drawing the graph, decide:
- Does it have an Euler trail?
- Does it have an Euler circuit?
Hint: How many vertices have odd degree?
Reveal answer
All five degrees are even, so there are 0 odd-degree vertices.
Therefore the graph has an Euler circuit — and hence also an Euler trail.
Puzzle 2 – Use the rule
A connected graph has vertex degrees:
4, 3, 2, 2, 1
Without drawing the graph, decide:
- Does it have an Euler trail?
- Does it have an Euler circuit?
- Where must the trail start and finish?
Reveal answer
There are exactly two odd-degree vertices: 3 and 1.
So the graph has an Euler trail, but not an Euler circuit.
The trail must start at one odd-degree vertex and finish at the other.
Puzzle 3 – What happens with four odd vertices?
A connected graph has degrees:
3, 3, 2, 2, 1 and 1
Without drawing the graph, decide:
- Does it have an Euler trail?
- Does it have an Euler circuit?
- What feature of the degree list tells you immediately?
Reveal answer
There are four odd-degree vertices: 3,3,1 and 1.
An Euler trail is possible only when there are zero or two odd-degree vertices.
So the graph has no Euler trail and therefore no Euler circuit.
You do not need to know what the graph looks like — counting the odd-degree vertices is enough.
Repair the graph
💡
This graph has four odd-degree vertices, so it does not have an Euler trail.
Add exactly one new edge so that an Euler trail becomes possible.
Click one vertex, then another vertex to join them.
In the next lesson, we’ll use these ideas on a classic type of puzzle:
Can you draw a picture without lifting your pencil or drawing any line twice?
Come back to it later
When you learn something new, it is important to come back to it later. Revisiting an idea after some time has passed helps you discover what you remember, what needs another look, and often makes the idea clearer the second time around. Our handouts are a perfect excuse to do exactly that.
Printable Graphs course
Prefer paper, a tablet, or studying offline? Open the printable version of the whole Graphs course, including this lesson.
Open printable PDF →Paths, cycles and Euler trails handouts
Get the printable Lesson 3 handout and the accompanying set of supplementary examples.
Get the Lesson 3 handouts →What did you think?
Whether you explored this together or worked independently, we would love to hear from both learners and parents. Tell us what you enjoyed, what was confusing, or what you would like to see next.
Share your feedback
The form is short and you do not need to give your name.