Proof of Euler's theorem on Eulerian circuits by a longest trail
Builds on MultigraphGraphEulerian trailTrailWalkDegree of a vertexConnected graph
Proof
A graph is a special multigraph, so we work with a multigraph , where and are finite. We show necessity by counting, and sufficiency with a longest trail.
- Conventions. A walk is a sequence of vertices and edges . We require for each . It is a trail if are pairwise distinct.
- In a graph an edge is determined by its ends, so these are the usual walks and trails. is connected if and any two vertices are joined by a walk.
- Let be a vertex and an edge. Let if is a loop at , and if is not a loop and . Otherwise . The degree is .
- For a condition , let be if holds and otherwise. For each , . Both cases of a loop and a non-loop agree with step 3.
- Let be a trail as in step 1, and let . By step 4, if .
- Hence . This also holds for , where both sides are even.
- Necessity. Let be an Eulerian circuit. Each edge of is exactly one , so for every .
- Since , step 6 gives . So every vertex has even degree.
- Sufficiency. Assume every vertex has even degree. A trail has length at most , so there is a trail of largest length.
- has an edge , with or . Then or is a trail of length . So .
- is closed. Suppose , and let . By step 6, is odd, while is even.
- So . Since sums over the edges of , some edge not in has , so .
- Let be the other end of , or if is a loop. Then is a trail of length . This contradicts step 9, so .
- Let , and suppose some edge of is not in . We claim that some edge not in has an end in .
- Suppose not, and take an edge not in with an end . Then .
- Since is connected, there is a walk from to . Some edge of this walk has an end in and an end outside .
- By the assumption in step 15, lies in . But every edge of has both ends in , a contradiction.
- So there is an edge not in with an end , where . Since , we may take .
- Then is a trail. It uses the same edges as , because . For it is itself.
- Appending and its other end to this trail, as in step 13, gives a trail of length . This contradicts step 9.
- So the assumption of step 14 fails, and every edge of lies in . Since is a trail, each edge appears exactly once, and by step 13.
- So is an Eulerian circuit of .
Idea
A trail passes through a vertex by using two of its edges, so only its ends can have an unpaired edge. For necessity this shows all degrees are even. For sufficiency take a longest trail. Even degrees leave a free edge at an open end, so the trail is closed. Connectedness gives a free edge at some vertex of the closed trail, and starting the trail there would make it longer.
Reading path
To understand this page from the ground up, read these 10 pages in order. The foundations come first.
Show the path as a graph
- no evidence level
- Graph definition
- Multigraph definition
- Neighbourhood definition
- Walk definition
- Degree of a vertex definition
- Reachability definition
- Trail definition
- Connected graph definition
- Eulerian trail definition
- Proof of Euler's theorem on Eulerian circuits by a longest trail proof
Where this leads
1 page builds on this one.
Further reading
About this page
| Tag | JSB2RB25Y8 |
|---|---|
| URI | m2://JSB2RB25Y8 |
| Kind | proof |
| Writing | W0 stub |
| MSC | 05C45 |
| Proves | Euler's theorem on Eulerian circuits |
| Uses | Multigraph, Graph, Eulerian trail, Trail, Walk, Degree of a vertex, Connected graph |
| Changed | 4 November 2026 |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- an inventory row: the row of the inventory that the node accounts for (0 of 1)
- a source with a locator (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.