add resize to Bipartite