Implement Graph#bipartite_sets.