3.1 Euler’s theorem and König’s theorem on bi-partite graphs

Definition 3.1 (Eulerian graph).

A circuit in a graph visiting every edge exactly once and every vertex is called an Eulerian circuit and a graph that has an Eulerian circuit is called an Eulerian graph.

Exercise(A) 3.2.

Show that a finite graph is Eulerian iff G is connected and is a edge-disjoint union of cycles i.e., G=C1∪⋯∪Cm where Ci’s are cycles and have no common edges.

Theorem 3.3 (Euler’s theorem ; Veblen 1912.).

A finite connected graph is Eulerian iff every vertex has even degree.

First proof..

Since the graph is Eulerian, let C1,…,Cm be the partition into edge-disjoint cycles. Viewing Ci’s as graphs by themselves, observe that dv⁢(Ci)=21⁢[v∈Ci] i.e., vertices in Ci have degree 2 and 0 otherwise. Further, we have by edge-disjointness of Ci’s that

dv⁢(G)=∑idv⁢(Ci)=2⁢∑i1⁢[v∈Ci],

and thus proving that every vertex has even degree.

To show the converse, assume that the vertex degrees are all even. Let x0⁢x1⁢…⁢xl be a simple path of maximal length l i.e., there is no simple path of length >l. Since dx0≥2, there exists a y∈N⁢(x0)∖{x1}. Then y⁢x0⁢x1⁢…⁢xl is a simple path of length l+1 and this yields a contradiction unless y=xi for some 1≤i≤l. Let xi=y. Then x0⁢x1⁢…⁢xi⁢x0 is a cycle, say C1. Remove C1 from G and consider G−C1. All vertex degrees in G−C1 are even. So, we can repeat the procedure for a component of G−C1 with at least two vertices and obtain a cycle C2. Continuing this way, we obtain cycles C3,…⁢Cm such that G is a disjoint union of C1,…,Cm and hence G is Eulerian by the claim above. ∎

Second proof..

The starting point for the proof is that every maximal trail in an even graph is closed (see Lemma below). Assume G has an Eulerian Tour, let it be C=v⁢v1⁢⋯⁢vk⁢v Consider u≠v∈V,
Let u be visited m times in C. Note that in each visit two edges incident on u are being used. Hence, ∃2⁢m edges incident on u. Since, C is eulerian, there are no more edges on u. This shows that degree of u is even. On the other hand, assume v occurs n times in C,

∴d⁢e⁢g⁢(v)=2⁢(m−2)+2=2⁢m−2

Hence, G is an even graph.
Conversely, Let G be an even connected graph with T=v0⁢v1⁢v2⁢⋯⁢vl being the maximal trail. By lemma given below, T is closed,i.e., v0−vl. Assume, T is not Eulerian, then ∃w∈V and w∼vi for some i with (w,vi)∉ T. Define, T’=w⁢vi⁢⋯⁢vl⁢⋯⁢vi. This makes T’ longer than T leading to contradiction as T is maximal. Hence, T is Eulerian. ∎

Lemma 3.4.

Every maximal trail in an even graph (i.e., graph with even vertices) is closed.

Proof.

Let T be a maximal trail. Assume T is not closed. Let, T=v⁢v1⁢v2⁢⋯⁢vk
Now, the last entry is to vk and hence there is no exit. Also, vk≠v. Hence, vk has odd number of edges in T. deg(v) is even and since edges are not repeated,
∃w∼v such that (v,w) is not visited by T. This shows that T+w is a trail which is larger than T. Hence, contradiction shows that our assumption was wrong, i.e., T is closed ∎

Exercise(A) 3.5 (Konigsberg problem).

Prove Euler’s theorem for multi-graphs and hence show that Konigsberg problem has no solution.

Sometimes usage of multi-graphs can simplify proofs of theorems for graphs.

Corollary 3.6.

Let G be a connected graph. G has an Eulerian trail iff there are 0 or exactly 2 vertices of odd degree.

Proof.

We have already proved that a finite connected graph G has an eulerian circuit( which is just a closed eulerian trail) if and only if it has zero vertices of even degree.

Now we prove that a finite connected graph has an open eulerian trail if and only if it has exactly two vertices of odd degree.

Assume G has an open Euler trail, P. Suppose the trail begins at v and ends at w. Except for the first listing of v and the last listing of w every time a vertex is listed, that accounts for two edges adjacent to that vertex, the one before it in the list and the one after it in the list. This circuit uses every edge exactly once. So every edge is accounted for and there are no repeats. Thus every degree must be even, except for v and w which must be odd.

Now suppose v and w are the vertices of odd degree. Consider G+e where e is a new edge between v and w. This graph has all even degrees. Thus it has an eulerian circuit. This circuit travels through edge e too. On removing edge e we get an euler trail in G.

∎

Can you prove the above corollary without appealing to multi-graphs ?

Exercise(A) 3.7.

Every closed odd length walk contains an odd length cycle.

Theorem 3.8 (König’s theorem).

A graph is bi-partite iff it has no odd cycles.

The König here is the hungarian mathematician Dénes König whose father Gyola König was also a well-known mathematician. Dénes wrote the first book on graph theory.

Proof.

The only if part : Suppose G is bi-partite with partition V=V1⊔V2. Let v0⁢v1⁢…,vk⁢v0 be a cycle. WLOG11 1 Without loss of generality, suppose vo∈V1. By bi-partiteness, vi∈V2 for 1≤i≤k and i odd and vi∈V1 for 1≤i≤k and i even. Since vk∼v0, vk∈V2 and hence k is odd. Thus, the length of the cycle k+1 is even.

The if part : Let v0∈V. Set v∈V1 if dG⁢(v0,v) is even and else v∈V2. WLOG, suppose v∼w for v,w∈V1. Then Let P,P′ be respectively the shortest paths from v0 to v,w respectively. Let P∗ be the inversed path from v to v0. Since v,w∈V1, P∗,P′ have even lengths and so P′wvP∗ is a closed walk starting at v and has odd length. By Lemma(3.7), it has an odd length cycle, a contradiction. Thus there are no edges between vertices in V1 or V2 respectively i.e., G is bi-partite with partition V1⊔V2. ∎