Hi,
Is this the right way to maintain the bipartite property of a graph for using the configuration model? Node labels are stored in type (true/false for the two classes).
gt.random_rewire(g, model ='constrained-configuration' , n_iter = 1, block_membership = g.vp.type)
Best, Patrick