Adjust definition of bipartite