Clean up bipartite.