-
-
Notifications
You must be signed in to change notification settings - Fork 405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sampler for bipartite graphs with given degrees #341
Comments
The code on that page is not too useful, actually, it is just sampling the bottom vertices with replacement, individually for each top vertex. So it potentially generates multiple edges. |
But we can do a similar thing, only sampling without replacement. |
Well, no, it is actually somewhat more difficult, but it can still be done, of course. One needs two partial prefix sum trees, one for bottom, one for top nodes. We order the vertices (mixed) according to their degrees. Then pull the first neighbor of the highest degree vertex, adjust degrees and trees, and repeat. |
This is probably not uniform sampling, though...... |
Hello, |
Sampling bipartite networks with given degrees is not available yet in igraph. It is planned to be implemented sometime this autumn, along with a bipartite version of
You can implement the stub matching method yourself, as it's quite easy in high-level languages. See https://sites.santafe.edu/~aaronc/courses/5352/fall2013/csci5352_2013_L11.pdf For further support questions, please use the forum. We would like to reserve the issue tracker for bug reports and feature requests as well as for coordinating development. |
See http://dx.doi.org/10.1016/j.physa.2006.04.047
And the code is actually here:
http://jlguillaume.free.fr/www/programs.php?lang=eng
Imported from Launchpad using lp2gh.
The text was updated successfully, but these errors were encountered: