Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Network structure describes how connections are distributed across the system, whether hubs exist, and whether high-degree nodes tend to connect to one another or to peripheral nodes.

Degree distribution

The degree distribution describes the fraction of nodes with degree kk.

Let pkp_k denote the probability that a uniformly sampled node has degree kk.

Two useful summary statistics are:

The variance of the degree distribution is

Var(K)=k2k2\mathrm{Var}(K)=\langle k^2\rangle-\langle k\rangle^2

where

k=kkpk,k2=kk2pk\langle k\rangle=\sum_k k p_k, \qquad \langle k^2\rangle=\sum_k k^2 p_k

Complementary cumulative distribution

For large networks, we often visualize the degree distribution using the complementary cumulative distribution function (CCDF) rather than the empirical probability mass function.

The CCDF is

P(k)=Pr[Kk]=xkpx\overline{P}(k)=\Pr[K\ge k]=\sum_{x\ge k} p_x

This emphasizes the tail of the distribution and is often easier to interpret for heavy-tailed networks.

Friendship paradox

The friendship paradox says that your neighbors tend to have more neighbors than you do, on average.

The average degree of a node reached by following a random edge is

k2k\frac{\langle k^2\rangle}{\langle k\rangle}

Since

k2k=k+Var(K)k,\frac{\langle k^2\rangle}{\langle k\rangle} = \langle k\rangle+\frac{\mathrm{Var}(K)}{\langle k\rangle},

the average neighbor degree is larger than the average node degree whenever the degree variance is positive.

The intuition is that high-degree nodes are more likely to be encountered when we sample through edges, because they appear many times in the edge list.

Erdős-Rényi graph G(n,p)G(n,p)

In the Erdős-Rényi random graph model G(n,p)G(n,p), each possible edge between a pair of nodes appears independently with probability pp.

For a node in G(n,p)G(n,p), the degree follows a binomial distribution:

KBinomial(n1,p)K \sim \mathrm{Binomial}(n-1, p)

So

E[K]=(n1)p\mathbb{E}[K]=(n-1)p

and

Var(K)=(n1)p(1p)\mathrm{Var}(K)=(n-1)p(1-p)

For large nn and small pp with (n1)pλ(n-1)p\approx \lambda, this degree distribution is well approximated by a Poisson distribution with mean λ\lambda.

Degree correlations

Degree correlations describe whether high-degree nodes tend to connect to other high-degree nodes or to low-degree nodes.

Average nearest-neighbor degree

One way to quantify degree correlations is through the average nearest-neighbor degree as a function of node degree:

knn(k)k_{nn}(k)

This is often approximated by a power law of the form

knn(k)akμk_{nn}(k)\approx a k^\mu

Interpretation

Degree correlations matter because they shape how quickly influence, failure, or contagion moves across hubs and peripheral nodes.