Definition

A bipartite graph is an undirected graph “the set of nodes can be divided into two disjoint sets and such that no edge has both end-nodes in the same set.”

In Laymann’s Terms

An undirected graph is bipartite if you can color the nodes using two colors such that no two adjacent nodes have the same color.

Real World Applications

Bipartite graphs are often used to model relationships between two different classes of objects. For example, scheduling jobs for workers, where one set represents workers and the other set represents jobs. An edge between a worker and a job indicates that the worker is qualified to perform that job.


Formal Definition

A graph is bipartite if there exists a partition of the vertex set into two disjoint subsets and such that every edge in connects a vertex in to a vertex in . Formally, this means: