A bipartite graph, also called a bigraph, is a graph whose vertex set can be decomposed into two disjoint
sets such that no two graph vertices within the
same set are adjacent. The two vertex classes are
said to form a bipartition. A bipartite graph is
a special case of a k-partite graph with
. The illustration above shows some bipartite graphs,
with vertices in each graph
colored based on to which part of the bipartition
they belong.
Bipartite graphs are equivalent to two-colorable graphs. All acyclic graphs are bipartite. A cyclic graph is bipartite iff all its cycles are of even length (Skiena 1990, p. 213).
If a bipartite graph has bipartition classes and
, then any Hamiltonian
cycle alternates between
and
and so requires
. Similarly, any Hamiltonian
path alternates between the classes, and so requires
. Thus a connected
bipartite graph with unequal bipartition sizes is
nonhamiltonian and one with bipartition
sizes differing by more than 1 is untraceable.
These converses do not hold in general: the E graph and
H graph have equal bipartition
sizes but are nonhamiltonian (indeed untraceable),
while the fork graph and spoke
graph
have bipartition sizes differing by 1 but are also
untraceable.
Families of bipartite graphs include
1. acyclic graphs (i.e., trees and forests),
2. book graphs ,
4. crown graphs ,
5. cycle graphs ,
6. gear graphs,
7. grid graphs,
8. Haar graphs,
9. Hadamard graphs,
10. hypercube graphs ,
11. knight graphs,
12. ladder graphs,
13. ladder rung graphs (which are forests).
14. path graphs (which are trees),
17. stacked book graphs,
18. star graphs (which are trees).
König's line coloring theorem states that every bipartite graph is a class 1 graph. The König-Egerváry theorem states that the matching number (i.e., size of a maximum independent edge set) equals the vertex cover number (i.e., size of a minimum vertex cover) for a bipartite graph.
A graph may be tested in the Wolfram Language to see if it is a bipartite graph using BipartiteGraphQ[g].
The numbers of bipartite graphs on , 2, ... nodes
are 1, 2, 3, 7, 13, 35, 88, 303, ... (OEIS A033995).
The numbers of connected bipartite graphs on , 2 ... nodes are
1, 1, 1, 3, 5, 17, 44, 182, ... (OEIS A005142).
The induced bipartite subgraph number measures the maximum number of vertices
which can be retained while the induced subgraph
is bipartite.
Kuang et al. (2026) obtain quantitative guarantees for dense induced subgraphs that are bipartite. For each fixed integer and sufficiently large
, every
-free graph of minimum degree at least
has such a subgraph of average degree at least
. Every triangle-free
graph of minimum degree at least
has one of average degree at least
, where
tends to zero as
in little-O notation.
More generally, for sufficiently large
and
, every
graph of minimum degree at least
in which every edge lies in at most
triangles has an induced bipartite subgraph of average
degree at least
for an absolute constant
. These are induced-subgraph
guarantees, which require deleting vertices rather than arbitrarily deleting edges
as in maxcut.
A graph is bipartite exactly when its odd girth is infinite. For instance, a bipartite graph containing a graph cycle has finite girth and infinite odd girth.