This uses the igraph's function sample_gnm to generate nsim random networks with the same number of nodes and links than the parameter ig and two restrictions:
at least one basal species/node, that is a species that has no prey, 2) 1 connected component so there is no disconnected species or sub-community.
generate_er_basal(ig, nsim = 1000)
igraph object with parameters to use in the random network simulations: number of species/nodes and number of links/edges
number of simulations
a list with igraph objects
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.