astamm / nevada

NEtwork-VAlued Data Analysis
https://astamm.github.io/nevada/
GNU General Public License v3.0
6 stars 2 forks source link

Sampling networks from Binomial and Poisson distribution #5

Closed danielemule closed 2 years ago

danielemule commented 2 years ago

nvd function fails to sample networks from Binomial and Poisson distribution. As we can see from the definition of the nvd function, at line 57, rpois_network function is used, but the number of nodes (25 in this case) is assigned to the argument n, instead of num_vertices. Analogously, this happens also for rbinom_network.

astamm commented 2 years ago

@danielemule can you test the version in #9 if the new nvd() is fixed and more useful now?

danielemule commented 2 years ago

@astamm the version in #9 solves issues #5 and #6; the new nvd() is more useful and more customizable.