graph: bipartiteness test implementation, twocolorable test