Tutorials › Graph Theory (Undergraduate) › Necessary Conditions for Undirected Euler Trails

Eulerian Trails and Circuits · Tutorial 69 of 799

Necessary Conditions for Undirected Euler Trails

Learn which connectivity and odd-degree conditions every undirected Euler circuit or open Euler trail must satisfy, and how to spot when either condition rules one out.

Intermediate 9 min read

What You'll Learn

  • Define the edge-support connectivity condition for an Euler trail.
  • Prove the degree-parity requirements for closed and open Euler trails.
  • Distinguish isolated vertices from vertices incident with edges.
  • Rule out Euler trails using explicit connectivity and degree counterexamples.
  • Check necessary conditions without mistaking them for a sufficiency proof.

Two Necessary Tests for Using Every Edge

An undirected Euler trail uses every edge of a graph exactly once. For such a trail to exist, the edges cannot be split across disconnected parts of the graph: a single sequence of adjacent edges cannot travel between components. The degrees also impose a restriction. Whenever the trail reaches an intermediate vertex, it must leave by another edge; only its endpoints can have an unpaired arrival or departure. These observations give necessary conditions, not a proof that the conditions are sufficient.

All graphs in this tutorial are finite and simple. A trail is a walk that does not repeat an edge; it may repeat vertices. An Euler trail is a trail that uses every edge of the graph exactly once. If its first and last vertices are the same, it is an Euler circuit. If they are different, it is an open Euler trail. We consider graphs with at least one edge, so the trail under discussion has positive length.

Definition: The edge-support of \(G\) is the set \(V^+=\{v\in V(G):\deg(v)>0\}\) of vertices incident with at least one edge. The edge-support is connected if every pair of vertices in \(V^+\) can be joined by a path in \(G\). This condition says that all edge-bearing vertices belong to one connected component; isolated vertices are not included.

The edge-support condition is deliberately weaker than requiring the whole graph to be connected. An isolated vertex has no edge to use, so its presence does not by itself prevent a trail from using every edge. By contrast, if two components each contain an edge, one trail cannot cover both.

The Necessary Connectivity and Parity Conditions

Theorem: Let \(G\) be a finite simple undirected graph with at least one edge. If \(G\) has an Euler trail, then its edge-support is connected. If the Euler trail is closed, every vertex has even degree. If it is open, its two distinct endpoints have odd degree and every other vertex has even degree. Consequently, an Euler trail can exist only if \(G\) has either zero or exactly two odd-degree vertices; an open Euler trail requires exactly two.

Proof. Write the Euler trail as \(v_0,e_1,v_1,\dots,e_m,v_m\), where each \(e_i\) joins \(v_{i-1}\) to \(v_i\), and every edge of \(G\) occurs exactly once. Every vertex in \(V^+\) appears in this sequence, because it is incident with an edge and every edge is used. For any two vertices appearing in the sequence, the part of the sequence between their appearances is a walk joining them. A walk contains a path between its endpoints (delete any section between repeated occurrences of a vertex). Thus every two vertices in \(V^+\) are joined by a path, and the edge-support is connected.

For the degree statements, count the incidences of edges at each vertex. Since the trail uses every edge exactly once, it accounts for every incidence at that vertex, and their number is its degree. At any internal position \(v_i\), with \(0<i<m\), the trail uses one edge to arrive and another to leave. Those are distinct edges because the trail does not repeat edges, so this visit contributes two incidences. Repeated internal visits also contribute pairs. If the trail is closed, \(v_0=v_m\); the first and last edges contribute two more incidences at that vertex. Every degree is therefore even. If the trail is open, \(v_0\ne v_m\); each endpoint has one unpaired incidence from its endpoint position, and all its other appearances contribute pairs. Each endpoint has odd degree, while every other vertex has only paired incidences and even degree. Isolated vertices have degree zero, which is even. These cases also show that there are either zero or two odd-degree vertices, with exactly two in the open case. \(\square\)

The connectivity and parity tests are separate: passing one does not make the other unnecessary. When ruling out a trail, either a disconnected edge-support or the wrong number of odd-degree vertices is enough. When using the conditions to assess a possible trail, remember that this tutorial establishes necessity only; it does not claim that passing the tests by itself proves a trail exists.

Worked Examples

Worked Example: Two Edge-Bearing Components

Let \(G\) have vertex set \(V(G)=\{1,2,3,4,5\}\) and edge set \(E(G)=\{12,23,31,45\}\). Decide whether an Euler trail is possible.

The triangle on \(\{1,2,3\}\) and the edge \(45\) lie in different components. The degrees are \(\deg(1)=2\), \(\deg(2)=2\), \(\deg(3)=2\), \(\deg(4)=1\), and \(\deg(5)=1\). Thus there are exactly two odd-degree vertices, \(4\) and \(5\); the parity count alone does not rule out an open Euler trail.

But \(V^+=\{1,2,3,4,5\}\) is not connected: there is no path from vertex \(1\) to vertex \(4\). A trail that uses edge \(12\), for example, stays within the triangle’s component, while edge \(45\) belongs to the other component. It cannot use all four edges in one trail.

Check: the degree sum is \(2+2+2+1+1=8=2|E(G)|\), since \(|E(G)|=4\). The connectivity condition fails, so the graph has no Euler trail despite having exactly two odd-degree vertices.

Worked Example: Four Odd-Degree Vertices

Let \(G\) have vertex set \(V(G)=\{c,a,b,d\}\) and edge set \(E(G)=\{ca,cb,cd\}\), the star with centre \(c\). Test the necessary conditions.

The graph is connected: every leaf is adjacent to \(c\), so any two vertices are joined by a path. Its degrees are \(\deg(c)=3\), \(\deg(a)=1\), \(\deg(b)=1\), and \(\deg(d)=1\). All four degrees are odd. An Euler trail can have at most two odd-degree vertices by the theorem, so this graph has no Euler trail.

Check: the degrees sum to \(3+1+1+1=6=2|E(G)|\), as \(|E(G)|=3\). This confirms the degree count. Connectivity holds, but the odd-degree requirement fails.

Worked Example: An Open Euler Trail with an Isolated Vertex

Let \(G\) have vertex set \(V(G)=\{1,2,3,4,5\}\) and edge set \(E(G)=\{12,23,34,41,13\}\). Vertex \(5\) is isolated. Check the degrees and an open Euler trail.

The degrees are \(\deg(1)=3\), \(\deg(2)=2\), \(\deg(3)=3\), \(\deg(4)=2\), and \(\deg(5)=0\). Exactly vertices \(1\) and \(3\) have odd degree. The edge-support is \(\{1,2,3,4\}\), which is connected: each of these vertices is joined to \(1\) by a path. The isolated vertex \(5\) does not belong to the edge-support.

The sequence \(1,2,3,4,1,3\) uses, in order, the edges \(12,23,34,41,13\). These are five distinct edges and they are all the edges in \(E(G)\), so this is an open Euler trail from \(1\) to \(3\).

Check: the trail starts and ends at the two odd-degree vertices, and the other vertices in the edge-support have even degree. Its five steps match \(|E(G)|=5\). Although \(G\) is not connected as a whole because \(5\) is isolated, it has an open Euler trail.

How to Apply the Conditions

For a graph with at least one edge, an efficient first assessment is to calculate degrees and inspect the edge-support. These checks can disprove the existence of an Euler trail, but a failed check does not say which other property is responsible, so it is useful to record both.

1
Find the edge-support.
List the vertices of positive degree and determine whether every pair is joined by a path. If the edge-bearing vertices lie in more than one component, there is no Euler trail.
2
Count odd degrees.
Calculate each degree and count the vertices whose degree is odd. More than two rules out an Euler trail. Exactly two is required for an open Euler trail; zero is required for an Euler circuit.
3
State what the checks establish.
If a necessary condition fails, conclude that the requested trail cannot exist. If both checks pass, conclude only that these necessary tests do not rule it out.

The degree parity rule can also be understood locally. Along a trail, each intermediate arrival at a vertex is matched by a departure along another edge. A closed trail has no unpaired endpoint incidences. An open trail has one at each of its two endpoints. This explains why the number of odd-degree vertices is so tightly constrained, but it does not make vertex degrees a record of the order in which edges can be traversed.

Common Mistakes

Requiring the entire graph to be connected. In the third example, vertex \(5\) is isolated, so the whole graph is disconnected. Nevertheless, the displayed trail uses every edge. The relevant necessary condition is that the edge-support be connected, not that every vertex—including isolated vertices—belong to the same component.

Treating two odd vertices as a guarantee. In the first example, there are exactly two odd-degree vertices, but the edge-support has two components. The parity count is necessary for an open Euler trail; by itself it does not overcome a connectivity failure.

Confusing the open and closed cases. A closed Euler trail has no distinct endpoints, and every degree must be even. An open Euler trail has two distinct endpoints, which must be odd; its other vertices must be even. For instance, the third example has two odd-degree vertices, so its exhibited trail is open rather than closed.

These distinctions let you use degree parity and connectivity as reliable obstruction tests. A degree count should be made for every vertex, including isolated vertices (whose degree is zero), while connectivity should be checked among the vertices that actually have incident edges.

Check Your Understanding

For each question, distinguish what the necessary conditions prove from what they do not establish.

  1. A graph has two components, each containing at least one edge, and exactly two odd-degree vertices. Which necessary condition rules out an Euler trail?
  2. Why does an isolated vertex not prevent a graph with at least one edge from having an Euler trail?
  3. Can a connected graph with four odd-degree vertices have an Euler circuit? Explain using the degree condition.
  4. In an open Euler trail, which vertices must have odd degree, and what degree parity must every other vertex have?
  5. A graph has connected edge-support and zero odd-degree vertices. What can you conclude from the conditions proved here, and what can you not conclude?