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