Given an undirected graph as an adjacency list, determine whether it is **bipartite** — i.e., whether its vertices can be split into two sets such that every edge connects a vertex in one set to a vertex in the other.
Interactive graph explorer available!
Switch to the Visualize tab to build a custom graph and animate BFS traversal to test your intuition.