Concept Flow - Bipartite Graph Check
Start with uncolored graph
Pick an unvisited node
Assign color 0 to start node
Use BFS/DFS to visit neighbors
For each neighbor
If uncolored
Assign opposite color
Continue BFS/DFS
All nodes colored without conflict?
Yes
Graph is Bipartite
No
Graph is Not Bipartite
Start from an unvisited node, color it, then use BFS/DFS to color neighbors with opposite colors. If a conflict arises, graph is not bipartite.
