Concept Flow - Bipartite Graph Check
Start with graph
Pick uncolored node
Assign color 0
Use BFS/DFS to visit neighbors
For each neighbor
If uncolored
Assign opposite
Continue BFS
Repeat for all nodes
If no conflicts -> Bipartite
Start from an uncolored node, assign a color, then use BFS or DFS to color neighbors with opposite colors. If a conflict arises, graph is not bipartite.
