logo

Bipartite Graph 📂Graph Theory

Bipartite Graph

Definition 1

A graph GG is called a bipartite graph and is also represented as G=G(A,B)G = G(A,B) if there exists a partition {A,B}\left\{ A,B \right\} of the vertices V(G)V(G) such that for every xyE(G)xy \in E(G), it is either xA,yBx \in A, y \in B or xB,yAx \in B , y \in A.

Explanation

As the name suggests, a bipartite graph is a graph where the vertices are divided into two groups, and there are no adjacent vertices within the same group. For example, in the following diagram, orange vertices are not adjacent to each other, and neither are the blue vertices.

20200211\_153238.png

As seen, being in different partitions doesn’t necessarily mean they have to be adjacent. If they are, it’s called a Complete Bipartite Graph. If the partition is made into three sets, it’s called a Tripartite Graph. Naturally, it’s possible to generalize to nn partitions, but usually, bipartite graphs are sufficient for research purposes.

Meanwhile, the following theorem related to cycles is known for bipartite graphs.

Theorem

Let GG be a connected graph. That GG is a bipartite graph is equivalent to the length of every cycle in GG being even.

Proof

()(\Rightarrow)

Let’s assume G=G(A,B)G = G(A,B) is a bipartite graph. If a cycle in GG starts at a vertex in AA, it must move to BB and then back to AA through two edges. So, no matter how many times it goes to BB, to form a closed path, it must always cross an even number of edges. Therefore, all cycles in GG must have even lengths.


()(\Leftarrow)

Let’s fix one vertex vV(G)v \in V(G) in GG. group all vertices with the shortest path from vv to ww into a set AV(G)A \subset V(G) whose length is even, and group the others into a set as B:=V(G)AB := V(G) \setminus A. If two vertices a1a_{1} and a2a_{2} in AA are adjacent, then the length of the cycle va1a2v v \to \cdots \to a_{1} \to a_{2} \to \cdots \to v according to the definition of AA, becomes odd. However, since the length of every cycle in GG is even by assumption, this is a contradiction, and thus vertices in AA cannot be adjacent. The same applies to vertices in BB. Therefore, GG must be a bipartite graph G(A,B)G(A,B).


  1. Wilson. (1970). Introduction to Graph Theory: p18. ↩︎