Question about configuration model for bipartite networks

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Question about configuration model for bipartite networks

pckamins
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





_______________________________________________
graph-tool mailing list
[hidden email]
https://lists.skewed.de/mailman/listinfo/graph-tool