graph/bipartite_utils library

Bipartite graph check and partitioning — roadmap #546.

Functions

bipartitePartition(Adjacency graph) → (bool, List<int>, List<int>)
Returns (true, left, right) if bipartite, else (false, [], []).