Let G V E be a loopfree undirected graph Prove that if G co

Let G = (V, E) be a loop-free undirected graph.

Prove that if G contains no cycle of odd length, then G is bipartite.

15. Let G = (V, E) be a loop-free undirected graph. Prove that if G contains no cycle of odd length, then

Solution

Answer :

Suppose G has no cycles of odd length. We may assume that G is connected (otherwise we consider the connected components of G ).

Pick a vertex u0 V . For every vertex v V , let pi be any path from u0 to v , and let dv be its length.

Set L = { v V / dv is even } and let R = { v V / dv is odd } .

Clearly V = LUR is a partition of V. We now show that ( L; R; E ) is bipartite.

If not, then there is some { u , v } E such that both u , v L or both u,v R .

In either case, there is a closed walk in G given by pu , { u,v } , pv (from u0 to u , then u to v , then v to u0 ),

whose total length is du + dv + 1, which is odd. Since G has a closed walk of odd length, then G also has a

cycle of odd length . This is a contradiction to our assumption that G has no cycles of odd length. Thus G = ( L; R; E ) is bipartite

Let G = (V, E) be a loop-free undirected graph. Prove that if G contains no cycle of odd length, then G is bipartite. 15. Let G = (V, E) be a loop-free undirect

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site