bipartite generation and plotting working again