Euler Hall — free maths guides

Euler's test: routes that use every edge once

Apply Euler's odd-degree test to a printed graph. The idea in plain words, a worked example, and a check with the answers shown — part of the free Quantitative Reasoning guides.

Count the odd-degree vertices

An Euler circuit is a route that uses every edge exactly once and returns to its start. An Euler trail uses every edge exactly once without returning. Euler's test decides both by counting odd-degree vertices:

| odd-degree vertices | what exists | |---|---| | 0 | an Euler circuit | | 2 | an Euler trail, between the two odd vertices | | 4 or more | neither |

The reasoning is one sentence. Entering and leaving a vertex uses two edges, so the vertices inside a route are used an even number of times. Only the two ENDS of an open route may be odd, and a closed route has no ends at all.

Note what the test is NOT about: connectivity is also required (an Euler route cannot cross between components), but parity is what distinguishes a circuit, a trail and neither. And note what it says nothing about: no edge count, no shape, no drawing.

Why one count settles a search problem

Finding an Euler circuit by trying routes is exponential. Euler's test settles it by counting, which is a rare and valuable thing in graph theory.

The argument is worth holding precisely, because it is the model for the module's other parity results. In a route using every edge, each time you arrive at a vertex you must leave it again, except at the two ends. So every interior visit consumes an even number of edges at that vertex, and the only vertices that can have odd degree are the start and the finish. A closed route has no start or finish, so every degree must be even.

The converse — that the conditions SUFFICE — is constructive: from a vertex, walk until you must stop, which gives a closed circuit when all degrees are even; splice further circuits in until every edge is used. That construction is what makes the test complete rather than merely necessary, and it is why an Euler route can always be found once the count passes.

The count alone is not quite enough: the edges must also lie in one component. Everything else is parity.

Worked example: a graph that looks traversable and is not

*V={1,2,3,4,5}V = \{1, 2, 3, 4, 5\},E={12,13,14,15,25}E = \{12, 13, 14, 15, 25\}. Does it have an Euler circuit, an Euler trail, or neither?**

Step one — the degrees. Vertex 1 meets four edges — 4. Vertex 2 meets1212 and2525 — 2. Vertex 3 meets1313 — 1. Vertex 4 meets1414 — 1. Vertex 5 meets1515 and2525 — 2.

Step two — count the odd ones. Vertices 3 and 4 have degree 1. So two odd vertices.

Step three — the verdict. Two odd vertices gives an Euler trail, running between them: start at 3 or 4, finish at the other.

Step four — is that right? Find one:3→1→43 \to 1 \to 4 uses3131 then1414 — and stops at 4 with edges unused. Start over:4→1→5→2→1→34 \to 1 \to 5 \to 2 \to 1 \to 3 uses1414,1515,5252,2121,1313 — all five edges, once each, ending at 3. So yes, a trail exists, and it runs from 4 to 3, the two odd vertices.

Step five — no circuit. A circuit needs every degree even, and two vertices are odd, so no Euler circuit exists.

By the end you can
  • Apply Euler's odd-degree test to a printed graph
  • Distinguish an Euler circuit from an Euler trail by the odd count
  • Say why connectivity is also required
Check yourself
  1. 1. Degrees 2, 2, 2, 2, 2 — circuit, trail or neither?
  2. 2. Degrees 1, 1 — which?
  3. 3. Degrees 3, 3, 3, 3 — which?
Answers
  1. 1. Circuit — zero odd vertices.
  2. 2. Trail — a single edge used once, starting at one end and finishing at the other.
  3. 3. Neither — four odd vertices. Any route must return to vertices it has already used.
Work out where to start — free, no accountAnswer six real questions — free, no account