Configuration model explained

In network science, the configuration model is a method for generating random networks from a given degree sequence. It is widely used as a reference model for real-life social networks, because it allows the modeler to incorporate arbitrary degree distributions.

Rationale for the model

In the configuration model, the degree of each vertex is pre-defined, rather than having a probability distribution from which the given degree is chosen.[1] As opposed to the Erdős–Rényi model, the degree sequence of the configuration model is not restricted to have a Poisson distribution, the model allows the user to give the network any desired degree distribution.

Algorithm

The following algorithm describes the generation of the model:

  1. Take a degree sequence, i. e. assign a degree

ki

to each vertex. The degrees of the vertices are represented as half-links or stubs. The sum of stubs must be even in order to be able to construct a graph (

\sumki=2m

). The degree sequence can be drawn from a theoretical distribution or it can represent a real network (determined from the adjacency matrix of the network).
  1. Choose two stubs uniformly at random and connect them to form an edge. Choose another pair from the remaining

2m-2

stubs and connect them. Continue until you run out of stubs. The result is a network with the pre-defined degree sequence. The realization of the network changes with the order in which the stubs are chosen, they might include cycles (b), self-loops (c) or multi-links (d) (Figure 1).

Self-loops, multi-edges and implications

The algorithm described above matches any stubs with the same probability. The uniform distribution of the matching is an important property in terms of calculating other features of the generated networks. The network generation process does not exclude the event of generating a self-loop or a multi-link. If we designed the process where self-loops and multi-edges are not allowed, the matching of the stubs would not follow a uniform distribution.

The expected total number of multi-links in a configuration model network would be:

1[
2
\langle{k2
\rangle}{\langle

k\rangle}-1]2

where

\langle{kn}\rangle

is the n-th moment of the degree distribution. Therefore, the average number of self-loops and multi-links is a constant for some large networks, and the density of self-loops and multi-links, meaning the number per node, goes to zero as

N → infty

as long as

\langle{k2}\rangle

is constant and finite. For some power-law degree distributions where the second moment diverges, density of multi-links may not vanish or may do so more slowly than

{N}-1

.

A further consequence of self-loops and multi-edges is that not all possible networks are generated with the same probability. In general, all possible realizations can be generated by permuting the stubs of all vertices in every possible way. The number of permutation of the stubs of node

i

is

ki!

, so the number of realizations of a degree sequence is

N\{ki\}=\prodiki!

. This would mean that each realization occurs with the same probability. However, self-loops and multi-edges can change the number of realizations, since permuting self-edges can result an unchanged realization. Given that the number of self-loops and multi-links vanishes as

N → infty

, the variation in probabilities of different realization will be small but present.

Properties

Edge probability

A stub of node

i

can be connected to

2m-1

other stubs (there are

2m

stubs altogether, and we have to exclude the one we are currently observing). The vertex

j

has

kj

stubs to which node

i

can be connected with the same probability (because of the uniform distribution). The probability of a stub of node

i

being connected to one of these

kj

stubs is
kj
2m-1

. Since node

i

has

ki

stubs, the probability of

i

being connected to

j

is
kikj
2m-1

(
kikj
2m

for sufficiently large

m

). Note that this formula can only be viewed as a probability if

kikj/2m\ll1

, and more precisely it describes the expected number of edges between nodes

i

and

j

. Note that this formula does not apply to the case of self-edges.

Given a configuration model with a degree distribution

pk

, the probability of a randomly chosen node

i

having degree

k

is

pk

. But if we took one of the vertices to which we can arrive following one of edges of i, the probability of having degree k is
k
2m

x npk=

kpk
\left\langlek\right\rangle

. (The probability of reaching a node with degree k is
k
2m

, and there are

npk

such nodes.) This fraction depends on

kpk

as opposed to the degree of the typical node with

pk

. Thus, a neighbor of a typical node is expected to have higher degree than the typical node itself. This feature of the configuration model describes well the phenomenon of "my friends having more friends than I do".

Clustering coefficient

Cg

(the average probability that the neighbors of a node are connected) is computed approximately as follows:

Cg=

infty
\sum
ki,kj=1
q
ki
q
kj
(ki-1)(kj-1)
2m

,

where

qk

denotes the probability that a random edge reaches a degree-

k

vertex, and the factors of the form "

ki-1

" rather than "

ki

" appear because one stub has been accounted for by the fact that these are neighbors of a common vertex. Evaluating the above results in

Cg=

1
2m

\left[

infty
\sum
k=0

(k-1)qk\right]2.

Using

qk=kpk/\langlek\rangle

and

2m=N\langlek\rangle

, with

pk

denoting the degree distribution,

\langlek\rangle

denoting the average degree, and

N

denoting the number of vertices, the above becomes

Cg=

1
N\langlek\rangle3

\left[

infty
\sum
k=1

(k-1)kP(k)\right]2=

\left(\langlek2\rangle-\langlek\rangle\right)2
N\langlek\rangle3

,

with

\langlek2\rangle

denoting the second moment of the degree distribution. Assuming that

\langlek2\rangle

and

\langlek\rangle

are constant, the above behaves as

Cg\sim

const
N

,

where the constant depends on

pk

. Thus, the clustering coefficient

Cg

becomes small in the

N\gg1

limit.

Giant component

In the configuration model, a giant component (GC) exists if

\langlek2\rangle-2\langlek\rangle>0,

where

\langlek\rangle

and

\langlek2\rangle

are the first and second moments of the degree distribution. That means that, the critical threshold solely depends on quantities which are uniquely determined by the degree distribution

pk

.

Configuration model generates locally tree-like networks, meaning that any local neighborhood in such a network takes the form of a tree. More precisely, if you start at any node in the network and form the set of all nodes at distance

d

or less from that starting node, the set will, with probability tending to 1 as n → ∞, take the form of a tree.[2] In tree-like structures, the number of second neighbors averaged over the whole network,

c2

, is:

c2=\langlek2\rangle-\langlek\rangle.

Then, in general, the average number at distance

d

can be written as:

cd=\left(

c2
c1

\right)d-1c1.

Which implies that if the ratio of

c2
c1
is larger than one, then the network can have a giant component. This is famous as the Molloy-Reed criterion.[3] The intuition behind this criterion is that if the giant component (GC) exists, then the average degree of a randomly chosen vertex

i

in a connected component should be at least 2. Molloy-Reed criterion can also be expressed as:

\sumiki(ki-2)>0,

which implies that, although the size of the GC may depend on

p0

and

p2

, the number of nodes of degree 0 and 2 have no contribution in the existence of the giant component.

Diameter

Configuration model can assume any degree distribution and shows the small-world effect, since to leading order the diameter of the configuration model is just

d=

ln(N)
ln(c2/c1)
.[4]

Components of finite size

As total number of vertices

N

tends to infinity, the probability to find two giant components is vanishing. This means that in the sparse regime, the model consist of one giant component (if any) and multiple connected components of finite size. The sizes of the connected components are characterized by their size distribution

wn

- the probability that a randomly sampled vertex belongs to a connected component of size

n.

There is a correspondence between the degree distribution

pk

and the size distribution

wn.

When total number of vertices tends to infinity,

N → infty

, the following relation takes place:[5]
w
n=\begin{cases} \langlek\rangle
n-1
*n
u
1

(n-2),&n>1,\\ p0&n=1, \end{cases}

where

u1(k):=

k+1
\langlek\rangle

pk+1,

and
*n
u
1

denotes the

n

-fold convolution power. Moreover, explicit asymptotes for

wn

are known when

n\gg1

and

|\langlek2\rangle-2\langlek\rangle|

is close to zero. The analytical expressions for these asymptotes depend on finiteness of the moments of

pk,

the degree distribution tail exponent

\beta

(when

pk

features a heavy tail), and the sign of Molloy–Reed criterion. The following table summarises these relationships (the constants are provided in).
Moments of

pk

Tail of

pk

sign(\langlek2\rangle-2\langlek\rangle)

wn,n\gg1,\alpha=\beta-2

\langlek3\rangle<infty

light tail-1 or 1
-C2n
C
1e

n-3/2

0

C1n-3/2

heavy tail,

\beta>4

-1

C3n-\alpha-1

0

C1n-3/2

1
-C2n
C
1e

n-3/2

\langlek3\rangle=infty,

\langlek2\rangle<infty,

heavy tail,

\beta=4

-1

C3n-\alpha-1

0
C
1'n-3/2
\sqrt{logn
}
1
C
1'n-3/2
\sqrt{logn
}e^
heavy tail,

3<\beta<4

-1

C3n-\alpha-1

0

C4

-1-1
\alpha
n

1

C5

-C6n
e

n-3/2

\langlek2\rangle=infty,

\langlek\rangle<infty,

heavy tail,

\beta=3

1

C7

-C8-C9
2
\pi
n
e
1
\pi
-2
n
heavy tail,

2<\beta<3

1

C10

-C11n
e

n-3/2

Modelling

Comparison to real-world networks

Three general properties of complex networks are heterogeneous degree distribution, short average path length and high clustering.[6] [7] Having the opportunity to define any arbitrary degree sequence, the first condition can be satisfied by design, but as shown above, the global clustering coefficient is an inverse function of the network size, so for large configuration networks, clustering tends to be small. This feature of the baseline model contradicts the known properties of empirical networks, but extensions of the model can solve this issue (see [8]). All the networks generated by this model are locally tree-like provided the average of the excess degree distribution is either constant or grows slower than the square root of number of links,

\sqrtm

. In other words, this model prevents forming substructures such as loops in the large size limit. Vanishing of clustering coefficient, is a special case of this more general result. While the tree-like property makes the model not very realistic, so many calculations, such as the generating function methods, are possible for the configuration model thanks to this feature.

Application: modularity calculation

The configuration model is applied as benchmark in the calculation of network modularity. Modularity measures the degree of division of the network into modules. It is computed as follows:

Q=

1
2L

\sumil(Aij-

kikj
2L

r)\delta(Ci,Cj)

[9]

in which the adjacency matrix of the network is compared to the probability of having an edge between node

i

and

j

(depending on their degrees) in the configuration model (see the page modularity for details).

Directed configuration model

In the DCM (directed configuration model),[10] each node is given a number of half-edges called tails and heads. Then tails and heads are matched uniformly at random to form directed edges. The size of the giant component,[10] [11] the typical distance,[12] and the diameter[13] of DCM have been studied mathematically. There also has been extensive research on random walks on DCM.[14] [15] [16] Some real-world complex networks have been modelled by DCM, such as neural networks,[17] finance[18] and social networks.[19]

Notes and References

  1. Book: Newman, Mark. Networks: An Introduction – Oxford Scholarship. en. 10.1093/acprof:oso/9780199206650.001.0001. 9780191594175. Oxford University Press. 2010-03-25.
  2. Book: Newman, Mark. Networks. 2018-10-18. Oxford University Press. 978-0-19-880509-0. 1. en. 10.1093/oso/9780198805090.001.0001.
  3. Molloy. Michael. Reed. Bruce. 1995-03-01. A critical point for random graphs with a given degree sequence. Random Structures & Algorithms. en. 6. 2–3. 161–180. 10.1.1.24.6195. 10.1002/rsa.3240060204. 1098-2418.
  4. Chung. Fan. Lu. Linyuan. 2002-12-10. The average distances in random graphs with given expected degrees. Proceedings of the National Academy of Sciences. en. 99. 25. 15879–15882. 10.1073/pnas.252631999. 0027-8424. 12466502. free. 138532. 2002PNAS...9915879C.
  5. Kryven. I. General expression for the component size distribution in infinite configuration networks. Physical Review E. 95. 5. 052303. 10.1103/PhysRevE.95.052303. 2017. 1703.05413. 28618550. 2017PhRvE..95e2303K. 11245.1/fa1b270b-61a5-4f20-b496-ddf446fdfe80. 8421307.
  6. Barabási. Albert-László. Albert. Réka. 1999-10-15. Emergence of Scaling in Random Networks. Science. en. 286. 5439. 509–512. 10.1126/science.286.5439.509. 0036-8075. 10521342. cond-mat/9910332. 1999Sci...286..509B. 524106.
  7. Watts. Duncan J.. Strogatz. Steven H.. 1998. Collective dynamics of 'small-world' networks. Nature. En. 393. 6684. 440–442. 10.1038/30918. 9623998. 1476-4687. 1998Natur.393..440W. 4429113.
  8. Newman. M. E. J.. 2009. Random Graphs with Clustering. Physical Review Letters. 103. 5. 058701. 10.1103/physrevlett.103.058701. 19792540. 0903.4009. 2009PhRvL.103e8701N. 28214709.
  9. Newman. M. E. J.. 2004. Finding and evaluating community structure in networks. Physical Review E. 69. 2. 026113. 10.1103/physreve.69.026113. 14995526. cond-mat/0308217. 2004PhRvE..69b6113N. 197314.
  10. COOPER . COLIN . FRIEZE . ALAN . The Size of the Largest Strongly Connected Component of a Random Digraph with a Given Degree Sequence . Combinatorics, Probability and Computing . May 2004 . 13 . 3 . 319–337 . 10.1017/S096354830400611X . 27511938 . en . 1469-2163.
  11. Cai . Xing Shi . Perarnau . Guillem . The giant component of the directed configuration model revisited . 10 April 2020. math.PR . 2004.04998 .
  12. van der Hoorn . Pim . Olvera-Cravioto . Mariana . Typical distances in the directed configuration model . The Annals of Applied Probability . June 2018 . 28 . 3 . 1739–1792 . 10.1214/17-AAP1342. 1511.04553 . 13683470 .
  13. Cai . Xing Shi . Perarnau . Guillem . The diameter of the directed configuration model . 10 March 2020. math.PR . 2003.04965 .
  14. Bordenave . Charles . Caputo . Pietro . Salez . Justin . Random walk on sparse random digraphs . Probability Theory and Related Fields . 1 April 2018 . 170 . 3 . 933–960 . 10.1007/s00440-017-0796-7 . 1508.06600 . 55211047 . en . 1432-2064.
  15. Caputo . Pietro . Quattropani . Matteo . Stationary distribution and cover time of sparse directed configuration models . Probability Theory and Related Fields . 1 December 2020 . 178 . 3 . 1011–1066 . 10.1007/s00440-020-00995-6 . 202565916 . en . 1432-2064. free . 11385/196435 . free .
  16. Cai . Xing Shi . Perarnau . Guillem . Minimum stationary values of sparse random directed graphs . 14 October 2020 . math.PR . 2010.07246.
  17. Amini . Hamed . Bootstrap Percolation in Living Neural Networks . Journal of Statistical Physics . 1 November 2010 . 141 . 3 . 459–475 . 0910.0627 . 2010JSP...141..459A . 7601022 . 10.1007/s10955-010-0056-z . en . 1572-9613.
  18. Book: Amini . Hamed . Minca . Andreea . Advances in Network Analysis and its Applications . Mathematical Modeling of Systemic Risk . Mathematics in Industry . 2013 . 18 . 3–26 . 10.1007/978-3-642-30904-5_1 . Springer . 978-3-642-30903-8 . 166867930 . en.
  19. Book: Li . Hui . 2018 37th Chinese Control Conference (CCC) . Attack Vulnerability of Online Social Networks . July 2018 . 1051–1056 . 978-988-15639-5-8 . 52933445 . 10.23919/ChiCC.2018.8482277.