Eulerian and Network Problems
Theory
An Eulerian trail uses every edge of a network exactly once, and an Eulerian circuit also finishes where it started. This Year 11 Mathematics Standard page shows how to use the degrees of the vertices to decide which one a network has, where a trail must start and finish, how to check a written route, and how to compare journeys in a weighted network.
Many everyday jobs mean travelling along every edge of a network: a garbage truck or street sweeper covering every street, a postie walking every footpath, or a council worker checking every road for potholes. Going along the same street twice wastes time and fuel, so the best route uses each edge exactly once.
A trail is a walk (a route along the edges) that never uses the same edge twice (it may pass through a vertex more than once). An Eulerian trail is a trail that uses every edge of the network exactly once. An Eulerian circuit is an Eulerian trail that starts and finishes at the same vertex. Both are named after the Swiss mathematician Leonhard Euler (say “oiler”).
You do not need trial and error to know whether such a route exists. Find the degree of each vertex (the number of edges that meet there) and count how many are odd. In a connected network:
- every vertex even: there is an Eulerian circuit;
- exactly two vertices odd: there is an Eulerian trail, which starts at one odd vertex and finishes at the other;
- more than two vertices odd: there is neither.
Network problems also use weighted networks, where the number on each edge is a distance, a time or a cost. The length of a journey is the total of the weights on the edges it uses.
The degree test for a connected network:
| Number of odd vertices | The network has | Start and finish |
|---|---|---|
| \(0\) | an Eulerian circuit | start at any vertex and finish at the same vertex |
| \(2\) | an Eulerian trail | start at one odd vertex, finish at the other |
| more than \(2\) | neither | – |
For a weighted network:
Is there an Eulerian trail or circuit?
- Write the degree next to every vertex. If two edges join the same pair of vertices, count both.
- Count the odd vertices. None: Eulerian circuit. Exactly two: Eulerian trail. More than two: neither.
- For a trail, start at an odd vertex. It will finish at the other odd vertex.
Writing or checking a route
- Trace the route on the network, crossing off each edge as you use it.
- Check that every step is a real edge, that no edge is used twice and that every edge has been crossed off.
- For a circuit, check that the route finishes where it started. If you get stuck with edges left over, go back and take a different edge at an earlier vertex.
Comparing journeys in a weighted network
- List every route from the start to the finish that does not pass through a vertex twice.
- Add the weights along each route.
- Compare the totals: the smallest is the shortest journey and the largest is the longest.
(i) Find the degree of each vertex:
\(A\): 3, \(B\): 2, \(C\): 3, \(D\): 2
Only \(A\) and \(C\) have odd degree, so there is an Eulerian trail from \(A\) to \(C\), for example \(A\)-\(B\)-\(C\)-\(D\)-\(A\)-\(C\). It uses all 5 edges once.
(ii) Find the degree of each vertex:
\(A\): 2, \(B\): 2, \(C\): 2, \(D\): 2, \(E\): 4
Every vertex has even degree, so there is an Eulerian circuit, for example \(A\)-\(B\)-\(E\)-\(C\)-\(D\)-\(E\)-\(A\). It uses all 6 edges once and finishes back at \(A\).
\(\therefore\) (i) is an Eulerian trail and (ii) is an Eulerian circuit.
(i) Is this possible? Where must she start and finish?
(ii) Write down a suitable route.
(i) Draw the network and find the degree of each lookout:
\(P\): 2, \(Q\): 3, \(R\): 4, \(S\): 3, \(T\): 2
Exactly two lookouts, \(Q\) and \(S\), have odd degree. So an Eulerian trail is possible. She must start at \(Q\) and finish at \(S\) (or start at \(S\) and finish at \(Q\)).
(ii) Start at \(Q\) and cross off each track as it is used:
\(Q\)-\(P\)-\(R\)-\(Q\)-\(S\)-\(R\)-\(T\)-\(S\)
There are 7 tracks and the route lists 8 lookouts, with no track repeated. \(Q\), \(R\) and \(S\) each appear twice, which is allowed.
(B) \(A\)-\(B\)-\(E\)-\(F\)-\(B\)-\(C\)-\(D\)-\(A\)
(C) \(A\)-\(B\)-\(E\)-\(F\)-\(C\)-\(D\)-\(A\)
(D) \(A\)-\(B\)-\(E\)-\(F\)-\(B\)-\(C\)-\(D\)
Look at the degree of each vertex. \(B\) has degree 4 and every other vertex has degree 2. Every vertex is even, so an Eulerian circuit exists.
There are 7 streets, so the circuit must list 8 letters and finish at \(A\).
(A) uses only 4 of the 7 streets.
(C) uses \(F\)-\(C\), which is not an edge.
(D) finishes at \(D\), not \(A\), and misses street \(DA\).
(B) uses \(AB,\ BE,\ EF,\ FB,\ BC,\ CD,\ DA\): all 7 streets exactly once, finishing at \(A\).
\(\therefore\) the Eulerian circuit is (B) A-B-E-F-B-C-D-A.
List every route from \(A\) to \(D\) and add the weights:
| \(A\text{-}B\text{-}C\text{-}D\) | \(=\) | \(4+1+5=10\) |
| \(A\text{-}B\text{-}D\) | \(=\) | \(4+7=11\) |
| \(A\text{-}C\text{-}D\) | \(=\) | \(6+5=11\) |
| \(A\text{-}C\text{-}B\text{-}D\) | \(=\) | \(6+1+7=14\) |
\(\therefore\) the quickest journey is \(A\)-\(B\)-\(C\)-\(D\), \(\mathbf{10}\) minutes, and the slowest is \(A\)-\(C\)-\(B\)-\(D\), \(\mathbf{14}\) minutes.
The quickest route uses three paths, not two: fewer edges does not always mean a shorter journey.
Common pitfalls
Frequently asked questions
What is the difference between an Eulerian trail and an Eulerian circuit?
Both use every edge of the network exactly once. An Eulerian circuit finishes at the same vertex it started from. An Eulerian trail that is not a circuit starts and finishes at different vertices.
How do you know if a network has an Eulerian circuit?
Find the degree of every vertex. If the network is connected and every degree is even, it has an Eulerian circuit, and you can start at any vertex.
Where does an Eulerian trail start and finish?
When exactly two vertices have odd degree, the Eulerian trail must start at one of them and finish at the other.
Can you visit a vertex more than once on an Eulerian trail?
Yes. The rule is that every edge is used exactly once. Vertices with degree 4 or more are always passed through more than once.
What if a network has more than two odd vertices?
Then it has no Eulerian trail and no Eulerian circuit: you cannot travel every edge exactly once. Some edges would have to be repeated.