Proof that a graph is bipartite iff it has no odd cycle
Builds on Bipartite graphCycleCircuitWalkReachabilityConnected componentDistance in a graphStrong inductionAxiom of choice
Proof
We prove the easy direction by alternation of sides, and the converse by colouring with the parity of the distance.
- () Let be a bipartition of , as in the definition of a bipartite graph. Let be a cycle, and say ; the case is symmetric.
- Each edge has one end in and one in . By induction on , for even and for odd .
- Since , the length is even. So has no cycle of odd length.
- () Lemma: if has a closed walk of odd length, then has a cycle of odd length. We use strong induction on the length .
- Let with and odd. Since no vertex is adjacent to itself, . So .
- Case 1: are pairwise distinct. The edges are with indices modulo . Two of them, for , could only agree if and .
- That would give and modulo , so , which is false. So the edges are distinct, is a circuit, and it is a cycle of odd length.
- Case 2: for some . Then is a closed walk of length .
- Also is a closed walk of length , using .
- Both lengths are between and , and they add up to the odd number . So one of them is odd, and the induction hypothesis gives an odd cycle. This proves the lemma.
- Now assume that has no cycle of odd length. By the axiom of choice, choose a vertex in each connected component of . For finite no choice principle is needed.
- For a vertex in the component , the vertex is reachable from . So the distance is a natural number.
- Let and . They are disjoint, and their union is the vertex set.
- Let be an edge. Then and are reachable from each other, so they lie in the same component . Let .
- Suppose and have the same parity. Take a walk from to of length , and a walk from to of length .
- Follow from to , then the edge , then backwards from to . This is a closed walk of length , which is odd.
- By the lemma, has a cycle of odd length, a contradiction. So and have different parities.
- Hence every edge has one end in and one end in , and is bipartite.
Idea
Along any walk the side changes at each step, so a closed walk in a bipartite graph has even length. Conversely, colour each vertex by the parity of its distance from a root. An edge inside one colour class would close an odd walk, and an odd closed walk always contains an odd cycle.
Reading path
To understand this page from the ground up, read these 40 pages in order. The foundations come first. The path takes the proof Proof of strong induction from ordinary induction.
Show the path as a graph
- no evidence level
- Bipartite graph definition
- Definition by recursion concept
- Element definition
- Graph definition
- Mathematical induction concept
- Natural numbers object
- Peano axioms concept
- Proposition concept
- Set definition
- Walk definition
- Successor function definition
- Disjunction definition
- Implication definition
- Predicate definition
- Family of sets definition
- Ordered pair definition
- Reachability definition
- Trail definition
- Union definition
- Addition of natural numbers definition
- The successor function is injective statement
- Zero is not a successor statement
- Existential quantifier definition
- Universal quantifier definition
- Cartesian product definition
- Distance in a graph definition
- Connected component definition
- Circuit definition
- Subset definition
- Union of a family of sets definition
- Order on the natural numbers definition
- Uniqueness quantifier definition
- Binary relation definition
- Cycle definition
- Proof of strong induction from ordinary induction proof
- Function definition
- Strong induction statement
- Choice function definition
- Axiom of choice statement
- Proof that a graph is bipartite iff it has no odd cycle proof
Where this leads
3 pages build on this one.
Further reading
- Web https://en.wikipedia.org/wiki/Bipartite_graph, Characterization
About this page
| Tag | 9S6P7S0NWY |
|---|---|
| URI | m2://9S6P7S0NWY |
| Kind | proof |
| Writing | W0 stub |
| MSC | 05C75 |
| Proves | A graph is bipartite iff it has no odd cycle |
| Uses | Bipartite graph, Cycle, Circuit, Walk, Reachability, Connected component, Distance in a graph, Strong induction, Axiom of choice |
| 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)
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.