You can group things into two sets.
You can group things into two sets.
Imagine you have two groups of dots.
You can think of this like a coloring game. If you color one set blue and the other red, every line will touch two different colors.
These graphs help us model real life. For example, you can map football players to their clubs. One set is the players. The other set is the clubs. A line shows which player played for which club. 
A bipartite graph is a special way to organize dots and lines. In math, we call these dots vertices and the lines edges. To be bipartite, you must be able to split all the vertices into two separate groups. We call these groups the parts of the graph. Every single edge must connect a dot from the first group to a dot in the second group. No edge is allowed to connect two dots that are in the same group.
You can also think of this using colors. Imagine you have two colors, like red and blue. If a graph is bipartite, you can color every dot so that no two dots of the same color touch each other. This is called a two-coloring. A triangle is not bipartite because it has an odd cycle. An odd cycle is a loop with an odd number of vertices. In a triangle, the third dot would always touch a dot of the same color.
Many mathematicians have studied these patterns over many years. A man named Dénes Kőnig wrote a paper in 1916 about these graphs. He showed that a graph is bipartite if it has no odd cycles. This is a very important rule in graph theory. Another famous idea is the two color theorem. Some people link this to a paper from 1879 by Alfred Kempe. He was working on a different puzzle called the four color theorem. 
There are many different types of these graphs. A complete bipartite graph is one where every dot in the first group connects to every dot in the second group. We use labels like $K_{m,n}$ to describe them. If the two groups have the same number of dots, we call it a balanced bipartite graph. A special version is called a biregular graph. In these graphs, every dot on the same side has the same number of connections.
Bipartite graphs are very useful for solving real problems. You can use them to show how football players relate to their clubs. One group is the players and the other group is the clubs. You can also use them for railway optimization. This helps find the smallest number of stations to cover all train stops. Even simple shapes like trees are always bipartite graphs.
{
"text": "In the mathematical field of graph theory, a bipartite graph is a specific way to organize vertices and edges. A bipartite graph, also called a bigraph, is defined by its ability to be divided into two distinct sets. These sets, known as the parts of the graph, are disjoint and independent. This means that every single edge in the graph must connect a vertex from the first set to a vertex in the second set. No edge is permitted to connect two vertices that belong to the same part. 
🖼️ Images & Media (3)
More to explore
✨ What else?
Related topics you might enjoy
🔬 Go deeper
More advanced topics to explore
🪜 Step back
Simpler topics to build understanding
What is Nepedia?
A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.