Bipartite Graph is a graph whose nodes can be divided into two disjoint sets such that every edge connects a node from one set to the other.
Key Characteristics:
Operation | Time Complexity | Space Complexity |
---|---|---|
Add Node | O(1) | O(V+E) |
Add Edge | O(1) | O(1) |
Remove Node | O(V+E) | O(V+E) |
Remove Edge | O(1) | O(1) |
Is Bipartite? | O(V+E) | O(V+E) |
Find Maximum Matching | O(VE) | O(V+E) |
Strengths:
Limitations: