add basic check bipartite graph