Bipartite Graph
Definition 1
A graph is called a bipartite graph and is also represented as if there exists a partition of the vertices such that for every , it is either or .
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.
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 partitions, but usually, bipartite graphs are sufficient for research purposes.
Meanwhile, the following theorem related to cycles is known for bipartite graphs.
Theorem
Let be a connected graph. That is a bipartite graph is equivalent to the length of every cycle in being even.
Proof
Let’s assume is a bipartite graph. If a cycle in starts at a vertex in , it must move to and then back to through two edges. So, no matter how many times it goes to , to form a closed path, it must always cross an even number of edges. Therefore, all cycles in must have even lengths.
Let’s fix one vertex in . group all vertices with the shortest path from to into a set whose length is even, and group the others into a set as . If two vertices and in are adjacent, then the length of the cycle according to the definition of , becomes odd. However, since the length of every cycle in is even by assumption, this is a contradiction, and thus vertices in cannot be adjacent. The same applies to vertices in . Therefore, must be a bipartite graph .
■
Wilson. (1970). Introduction to Graph Theory: p18. ↩︎