connectance: Connectance of a graph

Description Usage Arguments Value References Examples

View source: R/connectance.R

Description

Proportion of all possible links that are realized. In a directed unipartite network C = \frac{L}{S^2}, in a directed newtork where species cannot interact with themselves C = \frac{L}{S(S-1)}. In undirected newtork, if species cannot interact with themselves C = \frac{L}{S\frac{S-1}{2}} otherwise C = \frac{L}{S\frac{S-1}{2}}. Where L is the number of links and S the number of species.

Usage

1
connectance(graph, loops = TRUE, directed = TRUE)

Arguments

graph

an igraph object.

loops

logical: are species able to interact with themselves?

directed

logical: are interactions directed?

Value

numeric: the value of the connectance.

References

Delmas, E., Besson, M., Brice, M.-H., Burkle, L. A., Dalla Riva, G. V., Fortin, M.-J., … Poisot, T. (2019). Analysing ecological networks of species interactions. Biological Reviews.

Examples

1
2
3
4
5
6
7

clementviolet/omnivor documentation built on Aug. 16, 2019, 12:05 a.m.