When can a graph be drawn without lifting the pen?
Statement
- Prove that a connected graph in which every vertex has even degree has a closed trail (a walk that returns to its start and uses no edge twice) containing all its edges.
- Deduce that a connected graph with exactly two vertices of odd degree has a trail using every edge exactly once, starting at one odd vertex and ending at the other.
- For which does have a closed trail using every edge once?
Hint
For part 1, take a trail with the largest possible number of edges and show that it must be closed and use all edges.
Show solutionHide solution
Solution
1. Among all trails, take a longest one, .
* is closed.* Suppose . Each time passes through (other than the end) it uses two of its edges, and the last arrival uses one more, so uses an odd number of edges at . Since is even, there is an unused edge at , and can be extended: contradiction. So .
* uses all edges.* Suppose not. Because the graph is connected, some unused edge has an endpoint on : take an unused edge and a path from a vertex of to an endpoint of ending with ; the first unused edge on this path starts at a vertex reached by used edges only. Rotate the closed trail so that it starts and ends at , then append : this is a longer trail, a contradiction.
2. Let be the odd vertices. Add a new edge (a parallel edge if needed; the proof of part 1 works verbatim for multigraphs). All degrees are now even, so by part 1 there is a closed trail through all edges. Removing the new edge from it gives a trail from to through all the original edges exactly once.
3. All degrees of equal . If is odd, the degrees are even and is connected, so a closed trail exists. If is even and , every vertex has odd degree and a closed trail using all edges cannot exist. So the answer is: exactly the odd (for there are no edges and the empty trail works).
Remark. The converse of 1 is easy, so the condition is an equivalence. This is Euler's theorem (Königsberg bridges, 1736).
Lesson. Extremal choice: take a longest trail and show it cannot be improved.