Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Bipartite Graphs
A bipartite graph is a graph whose vertex set can be split into two disjoint sets, V1 and V2, such that every edge connects a vertex in V1 to a vertex in V2. No edge connects two vertices within the same set.
Bipartite Graph
If the vertex-set of a graph G can be split into two disjoint sets V1 and V2, in such a way that each edge joins a vertex in V1 to a vertex in V2, and there are no edges connecting two vertices within V1 or within V2, then G is called a bipartite graph.
In the graph above, every edge connects a green vertex (V1) to a blue vertex (V2). No edge connects two green vertices or two blue vertices, confirming it is bipartite.
Complete Bipartite Graph
A complete bipartite graph is a bipartite graph in which every vertex in V1 is connected to every vertex in V2. It is denoted by Kx,y where x is the number of vertices in V1 and y is the number of vertices in V2. The total number of edges in Kx,y is x × y.
In K3,3 above, every vertex in V1 is connected to every vertex in V2, giving 3 × 3 = 9 edges total.
Conclusion
A bipartite graph splits its vertices into two disjoint sets with edges only between the sets. A complete bipartite graph Kx,y connects every vertex in one set to every vertex in the other, resulting in x × y total edges.
