# Degree distribution

## Species richness

#
** EcologicalNetwork.richness** —

*Function*.

Richness (number of species) in a bipartite network

Richness (number of species) in a unipartite network

## Counting degrees

#
** EcologicalNetwork.degree** —

*Function*.

**Degree of species in a unipartite network**

degree(N::Unipartite)

**Degree of species in a bipartite network**

degree(N::Bipartite)

This is a concatenation of the out degree and the in degrees of nodes on both sizes, as measured by making the graph unipartite first. Rows are first, columns second.

#
** EcologicalNetwork.degree_out** —

*Function*.

**Expected number of outgoing degrees**

degree_out(N::EcoNetwork)

#
** EcologicalNetwork.degree_in** —

*Function*.

**Expected number of ingoing degrees**

degree_in(N::EcoNetwork)

For probabilistic networks only, there are measures of degree variance:

#
** EcologicalNetwork.degree_var** —

*Function*.

**Variance in the degree**

degree_var(N::UnipartiteProbaNetwork)

#
** EcologicalNetwork.degree_out_var** —

*Function*.

**Variance in the outgoing degree**

degree_out_var(N::ProbabilisticNetwork)

#
** EcologicalNetwork.degree_in_var** —

*Function*.

**Variance in the ingoing degree**

degree_in_var(N::ProbabilisticNetwork)