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=C1Cm 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[vCi] 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)=2i1[vCi],

and thus proving that every vertex has even degree.

To show the converse, assume that the vertex degrees are all even. Let x0x1xl be a simple path of maximal length l i.e., there is no simple path of length >l. Since dx02, there exists a yN(x0){x1}. Then yx0x1xl is a simple path of length l+1 and this yields a contradiction unless y=xi for some 1il. Let xi=y. Then x0x1xix0 is a cycle, say C1. Remove C1 from G and consider GC1. All vertex degrees in GC1 are even. So, we can repeat the procedure for a component of GC1 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=vv1vkv Consider uvV,
Let u be visited m times in C. Note that in each visit two edges incident on u are being used. Hence, 2m 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,

deg(v)=2(m2)+2=2m2

Hence, G is an even graph.
Conversely, Let G be an even connected graph with T=v0v1v2vl being the maximal trail. By lemma given below, T is closed,i.e., v0vl. Assume, T is not Eulerian, then wV and wvi for some i with (w,vi) T. Define, T’=wvivlvi. 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=vv1v2vk
Now, the last entry is to vk and hence there is no exit. Also, vkv. Hence, vk has odd number of edges in T. deg(v) is even and since edges are not repeated,
wv 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=V1V2. Let v0v1,vkv0 be a cycle. WLOG11 1 Without loss of generality, suppose voV1. By bi-partiteness, viV2 for 1ik and i odd and viV1 for 1ik and i even. Since vkv0, vkV2 and hence k is odd. Thus, the length of the cycle k+1 is even.

The if part : Let v0V. Set vV1 if dG(v0,v) is even and else vV2. WLOG, suppose vw for v,wV1. 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,wV1, P,P have even lengths and so PwvP 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 V1V2. ∎