Skip to content

Structural models

Abstract

These functions generate random networks based on structural models. The models are given as types (specifically subtypes of StructuralModel), and return a network the type of which depends on the generative algorithm, when passed to the structuralmodel function.

Models

# SpeciesInteractionNetworks.StructuralModelType.

StructuralModel

...

source

# SpeciesInteractionNetworks.NicheModelType.

NicheModel

The niche model of food webs is one of the most emblematic food web models. Based on a given species richness and expected connectance, it generates food webs with properties that closely reproduce empirical networks. One particular property of the food webs generated with this model is that they are interval, which is to say that there are not gaps in the diet of species.

References

Williams and Martinez (2000)

source

The generative function

# SpeciesInteractionNetworks.structuralmodelFunction.

structuralmodel(::Type{NicheModel}, species::Integer=10, connectance::AbstractFloat=0.2)

Generate a food web under the niche model with the given number of species, and an expected connectance. Note that by the nature of the niche model algorithm, only the species richness is guaranteed; there is no guarantee that the connectance will be correct.

See NicheModel for more information about the niche model.

source