The magic of bipartite graphs — Why everything works
The absence of odd cycles is a single structural property, yet it makes matching, coloring, and covering all tractable at once. This article explores the remarkable power of bipartiteness through K"onig's theorem, Hall's marriage theorem, and the reduction patterns they enable.
There is a well-known heuristic in graph theory: "on bipartite graphs, everything works." Problems that are NP-complete on general graphs become polynomial-time solvable with surprising frequency once the graph is restricted to be bipartite. This article investigates why bipartite graphs enjoy such remarkable good fortune.
1 What is a bipartite graph?
Students and companies in a job market, tasks and machines in a scheduling system, problems and solution techniques in a mathematical toolbox – bipartite graphs are the natural model whenever a relationship exists between two distinct kinds of objects.
2 No odd cycles – that is all it takes
The characterization of bipartiteness is elegantly simple.
This "BFS two-coloring" characterization also implies that testing bipartiteness takes time.
3 Matching – the crown jewel of bipartite graphs
Maximum matching can be solved in polynomial time even on general graphs (via Edmonds' blossom algorithm). But on bipartite graphs, the situation is far simpler: the problem reduces directly to maximum flow.
4 König's theorem – the duality of matching and covering
The most beautiful theorem about bipartite graphs is arguably Kö
5 Coloring – an NP-complete problem becomes trivial
Deciding whether is NP-complete on general graphs. But for bipartite graphs:
This is immediate from the definition: a bipartite graph is a graph that can be 2-colored.
6 Independent sets – König via complements
Finding a maximum independent set is NP-complete on general graphs. On bipartite graphs, however:
7 Hall's theorem – when does a perfect matching exist?
8 Reduction patterns in practice
Bipartite matching: "What is the maximum number of pairs?" maximum matching.
Minimum vertex cover: "What is the fewest vertices needed to cover all edges?" by Kö
Maximum independent set: "What is the largest conflict-free subset?" .
Edge coloring: The edge chromatic number of a bipartite graph equals its maximum degree (Kö
9 Takeaway – why bipartite graphs are special
Bipartite no odd cycle 2-colorable.
Kö
As a corollary, maximum independent set is computable from the matching.
Chromatic number is trivially 2.
Many problems that are NP-complete on general graphs become polynomial-time solvable on bipartite graphs.
A single structural property– the absence of odd cycles – yields all of these benefits. That is the magic of bipartite graphs.
In the next article, we turn our attention to the "shape" of a graph itself: the striking consequences of planarity, culminating in the four-color theorem.
Mathematics "between the lines" — exploring the intuition textbooks leave out, written in LaTeX on Folio.