Niche model graphs

The Niche model is used to generate realistic random graphs resembling predator-prey networks, or food webs. Its inputs are a number of species, and expected connectance (density)

niche_model_graphs(g, S, C)

Generates one random model with S species

Parameters:
  • S – number of species (vertices)
  • C – expected connectance (density), between 0 (no arcs) and 1 (complete graph)
Returns:

the directed graph g

niche_model_graph(S, C)

Convenience function to generate a graph using the niche model