Deep Dive
Is Graph Bipartite
785. Is Graph Bipartite? · Graph search · 61 of 78
1/9
Split into two teams
In this lessonStep 1 of 9 · ← → keys
The question
Split every node into two groups so that every edge goes between the groups. BFS paints each neighbour the opposite colour and stops if two neighbours ever share one.