Problem Solving

Bipartite Graph

Two columns of pins are joined by threads across the gap.

Bipartite Graph definition

A bipartite graph has a division of its vertices into two sets such that each edge joins vertices in different sets.

In Spanish
grafo bipartito
Topic
Graph theory

Bipartite Graph in a picture

Bipartite Graph diagramThe left and right columns give two sets. Each edge crosses between them.ABCD
The left and right columns give two sets. Each edge crosses between them.

How it works

Try marking each vertex with one of two colors so that neighbors have different colors. If a conflict occurs, the graph cannot be colored this way. A graph is bipartite exactly when it has no odd-length cycle. Complete bipartite graphs add every possible edge between the two sets.

Worked examples

Is a triangle bipartite?

No. Going around a three-edge cycle forces two neighbors to have the same color.

Is a square with no diagonals bipartite?

Yes. Put opposite vertices together.

Does a bipartite graph need every possible cross-edge?

No. That extra requirement defines a complete bipartite graph.

Common mistake

Vertices in different sets are allowed to share an edge. A general bipartite graph can leave some of these pairs unconnected.

Quick check

Can an edge join two vertices in the same set?

Show answer

No.

Can a bipartite graph have a four-cycle?

Show answer

Yes.

Can it have a five-cycle?

Show answer

No.

Sources

Flashcard

Bipartite Graph

Reveal the definition

A bipartite graph has a division of its vertices into two sets such that each edge joins vertices in different sets.

Effortless Math. “Bipartite Graph.” Math Dictionary.