Degree distribution#Generating functions method

{{Short description|Concept in network science}}

{{Network Science}}

In the study of graphs and networks, the degree of a node in a network is the number of connections it has to other nodes and the degree distribution is the probability distribution of these degrees over the whole network.

Definition

The degree of a node in a network (sometimes referred to incorrectly as the connectivity) is the number of connections or edges the node has to other nodes. If a network is directed, meaning that edges point in one direction from one node to another node, then nodes have two different degrees, the in-degree, which is the number of incoming edges, and the out-degree, which is the number of outgoing edges.

The degree distribution P(k) of a network is then defined to be the fraction of nodes in the network with degree k. Thus if there are n nodes in total in a network and nk of them have degree k, we have

:P(k) = \frac{n_{k}}{n}.

The same information is also sometimes presented in the form of a cumulative degree distribution, the fraction of nodes with degree smaller than k, or even the complementary cumulative degree distribution, the fraction of nodes with degree greater than or equal to k (1 - C) if one considers C as the cumulative degree distribution; i.e. the complement of C.

Observed degree distributions

The degree distribution is very important in studying both real networks, such as the Internet and social networks, and theoretical networks. The simplest network model, for example, the (Erdős–Rényi model) random graph, in which each of n nodes is independently connected (or not) with probability p (or 1 − p), has a binomial distribution of degrees k:

:

P(k) = {n-1\choose k} p^k (1 - p)^{n-1-k},

(or Poisson in the limit of large n, if the average degree \langle k\rangle=p(n-1) is held fixed). Most networks in the real world, however, have degree distributions very different from this. Most are highly right-skewed, meaning that a large majority of nodes have low degree but a small number, known as "hubs", have high degree. Some networks, notably the Internet, the World Wide Web, and some social networks were argued to have degree distributions that approximately follow a power law:

P(k)\sim k^{-\gamma}

, where γ is a constant. Such networks are called scale-free networks and have attracted particular attention for their structural and dynamical properties.{{cite journal | last1=Barabási | first1=Albert-László | last2=Albert | first2=Réka | title=Emergence of Scaling in Random Networks | journal=Science | volume=286 | issue=5439 | date=1999-10-15 | issn=0036-8075 | doi=10.1126/science.286.5439.509 | pages=509–512| pmid=10521342 | arxiv=cond-mat/9910332 | bibcode=1999Sci...286..509B | s2cid=524106 }}{{cite journal | last1=Albert | first1=Réka | last2=Barabási | first2=Albert-László | title=Topology of Evolving Networks: Local Events and Universality | journal=Physical Review Letters | volume=85 | issue=24 | date=2000-12-11 | issn=0031-9007 | doi=10.1103/physrevlett.85.5234 | pages=5234–5237 | pmid=11102229 | arxiv=cond-mat/0005085 | bibcode=2000PhRvL..85.5234A | hdl=2047/d20000695 | s2cid=81784 | url=https://repository.library.northeastern.edu/files/neu:331099/fulltext.pdf | access-date=2019-09-25 | archive-date=2018-07-21 | archive-url=https://web.archive.org/web/20180721070200/https://repository.library.northeastern.edu/files/neu:331099/fulltext.pdf | url-status=live }}{{cite journal | last1=Dorogovtsev | first1=S. N. | last2=Mendes | first2=J. F. F. | last3=Samukhin | first3=A. N. | title=Size-dependent degree distribution of a scale-free growing network | journal=Physical Review E | volume=63 | issue=6 | date=2001-05-21 | issn=1063-651X | doi=10.1103/physreve.63.062101 | page=062101| pmid=11415146 |arxiv=cond-mat/0011115| bibcode=2001PhRvE..63f2101D | s2cid=119063903 }}{{cite journal|title=Scale-free behavior of networks with the copresence of preferential and uniform attachment rules|journal=Physica D: Nonlinear Phenomena|year=2018|first1=Angelica |last1=Pachon |first2=Laura |last2=Sacerdote |first3=Shuyi |last3=Yang |volume=371|pages=1–12|doi=10.1016/j.physd.2018.01.005|arxiv=1704.08597|bibcode=2018PhyD..371....1P|s2cid=119320331 }}

Excess degree distribution

Excess degree distribution is the probability distribution, for a node reached by following an edge, of the number of other edges attached to that node.{{Cite book|last=Newman|first=Mark|url=http://www.oxfordscholarship.com/view/10.1093/oso/9780198805090.001.0001/oso-9780198805090|title=Networks|date=2018-10-18|publisher=Oxford University Press|isbn=978-0-19-880509-0|volume=1|language=en|doi=10.1093/oso/9780198805090.001.0001|access-date=2020-04-19|archive-date=2020-04-15|archive-url=https://web.archive.org/web/20200415113429/https://www.oxfordscholarship.com/view/10.1093/oso/9780198805090.001.0001/oso-9780198805090|url-status=live}} In other words, it is the distribution of outgoing links from a node reached by following a link.

Suppose a network has a degree distribution

P(k)

, by selecting one node (randomly or not) and going to one of its neighbors (assuming to have one neighbor at least), then the probability of that node to have

k

neighbors is not given by

P(k)

. The reason is that, whenever some node is selected in a heterogeneous network, it is more probable to reach the hubs by following one of the existing neighbors of that node. The true probability of such nodes to have degree

k

is

q(k)

which is called the excess degree of that node. In the configuration model, which correlations between the nodes have been ignored and every node is assumed to be connected to any other nodes in the network with the same probability, the excess degree distribution can be found as:

q(k) = \frac{k+1}{\langle k \rangle}P(k+1),

where

{\langle k \rangle}

is the mean-degree (average degree) of the model. It follows from that, that the average degree of the neighbor of any node is greater than the average degree of that node. In social networks, it mean that your friends, on average, have more friends than you. This is famous as the friendship paradox. It can be shown that a network can have a giant component, if its average excess degree is larger than one:

\sum_k kq(k) > 1 \Rightarrow {\langle k^2 \rangle}/{\langle k \rangle} - 1 >1 \Rightarrow {\langle k^2 \rangle}-2{\langle k \rangle}>0

Bear in mind that the last two equations are just for the configuration model and to derive the excess degree distribution of a real-word network, we should also add degree correlations into account.

Generating functions method

Generating functions can be used to calculate different properties of random networks. Given the degree distribution and the excess degree distribution of some network,

P(k)

and

q(k)

respectively, it is possible to write two power series in the following forms:

G_0(x) = \textstyle \sum_{k} \displaystyle P(k)x^k

and

G_1(x) = \textstyle \sum_{k} \displaystyle q(k)x^k = \textstyle \sum_{k} \displaystyle \frac{k}{\langle k \rangle}P(k)x^{k-1}

G_1(x)

can also be obtained from derivatives of

G_0(x)

:

G_1(x) = \frac{G'_0(x)}{G'_0(1)}

If we know the generating function for a probability distribution

P(k)

then we can recover the values of

P(k)

by differentiating:

P(k) = \frac{1}{k!} {\operatorname{d}^k\!G\over\operatorname{d}\!x^k}\biggl \vert _{x=0}

Some properties, e.g. the moments, can be easily calculated from

G_0(x)

and its derivatives:

{\langle k \rangle} = G'_0(1)

{\langle k^2 \rangle} = G''_0(1) + G'_0(1)

And in general:

{\langle k^m \rangle} = \Biggl[{\bigg(\operatorname{x}{\operatorname{d}\!\over\operatorname{dx}\!}\biggl)^m}G_0(x)\Biggl]_{x=1}

For Poisson-distributed random networks, such as the ER graph,

G_1(x) = G_0(x)

, that is the reason why the theory of random networks of this type is especially simple. The probability distributions for the 1st and 2nd-nearest neighbors are generated by the functions

G_0(x)

and

G_0(G_1(x))

. By extension, the distribution of

m

-th neighbors is generated by:

G_0\bigl(G_1(...G_1(x)...)\bigr)

, with

m-1

iterations of the function

G_1

acting on itself.{{Cite journal|last1=Newman|first1=M. E. J.|last2=Strogatz|first2=S. H.|last3=Watts|first3=D. J.|date=2001-07-24|title=Random graphs with arbitrary degree distributions and their applications|journal=Physical Review E|language=en|volume=64|issue=2|pages=026118|doi=10.1103/PhysRevE.64.026118|pmid=11497662 |arxiv=cond-mat/0007235 |issn=1063-651X|doi-access=free|bibcode=2001PhRvE..64b6118N }}

The average number of 1st neighbors,

c_1

, is

{\langle k \rangle} = {dG_0(x)\over dx}|_{x=1}

and the average number of 2nd neighbors is:

c_2 = \biggl[ {d\over dx}G_0\big(G_1(x)\big)\biggl]_{x=1} = G_1'(1)G'_0\big(G_1(1)\big) = G_1'(1)G'_0(1) = G''_0(1)

Degree distribution for directed networks

File:Enwiki-degree-distribution.png

In a directed network, each node has some in-degree

k_{

in}

and some out-degree

k_{out}

which are the number of links which have run into and out of that node respectfully. If

P(k_{in}, k_{out})

is the probability that a randomly chosen node has in-degree

k_{

in}

and out-degree

k_{out}

then the generating function assigned to this joint probability distribution can be written with two valuables

x

and

y

as:

\mathcal{G}(x,y) = \sum_{k_{in},k_{out}} \displaystyle P({k_{in},k_{out}})x^{k_{in}}y^{k_{out}} .

Since every link in a directed network must leave some node and enter another, the net average number of links entering a node is zero. Therefore,

\langle{k_{in}-k_{out}}\rangle =\sum_{k_{in},k_{out}} \displaystyle (k_{in}-k_{out})P({k_{in},k_{out}}) = 0

,

which implies that, the generation function must satisfy:

{\partial \mathcal{G}\over\partial x}\vert _{x,y=1} = {\partial \mathcal{G}\over\partial y}\vert _{x,y=1} = c,

where

c

is the mean degree (both in and out) of the nodes in the network;

\langle{k_{in}}\rangle = \langle{k_{out}}\rangle = c.

Using the function

\mathcal{G}(x,y)

, we can again find the generation function for the in/out-degree distribution and in/out-excess degree distribution, as before.

G^{in}_0(x)

can be defined as generating functions for the number of arriving links at a randomly chosen node, and

G^{in}_1(x)

can be defined as the number of arriving links at a node reached by following a randomly chosen link. We can also define generating functions

G^{out}_0(y)

and

G^{out}_1(y)

for the number leaving such a node:

G^{in}_0(x) = \mathcal{G}(x,1)

G^{in}_1(x) = \frac{1}{c} {\partial \mathcal{G}\over\partial x}\vert _{y=1}

G^{out}_0(y) = \mathcal{G}(1,y)

G^{out}_1(y) = \frac{1}{c} {\partial \mathcal{G}\over\partial y}\vert _{x=1}

Here, the average number of 1st neighbors,

c

, or as previously introduced as

c_1

, is

{\partial \mathcal{G}\over\partial x}\biggl \vert _{x,y=1} = {\partial \mathcal{G}\over\partial y}\biggl \vert _{x,y=1}

and the average number of 2nd neighbors reachable from a randomly chosen node is given by:

c_2 = G_1'(1)G'_0(1) ={\partial^2 \mathcal{G}\over\partial x\partial y}\biggl \vert _{x,y=1}

. These are also the numbers of 1st and 2nd neighbors from which a random node can be reached, since these equations are manifestly symmetric in

x

and

y

.

Degree distribution for signed networks

In a signed network, each node has a positive-degree

k_{

+}

and a negative degree

k_{-}

which are the positive number of links and negative number of links connected to that node respectfully. So

P(k_{+})

and

P(k_{-})

denote negative degree distribution and positive degree distribution of the signed network.{{cite journal | vauthors = Saberi M, Khosrowabadi R, Khatibi A, Misic B, Jafari G | title = Topological impact of negative links on the stability of resting-state brain network | journal = Scientific Reports | date = January 2021 | volume = 11 | issue = 1 | page = 2176 | pmid = 33500525 | pmc = 7838299 | doi = 10.1038/s41598-021-81767-7 | bibcode = 2021NatSR..11.2176S | url = }}{{cite journal | vauthors = Ciotti V | title = Degree correlations in signed social networks | journal = Physica A: Statistical Mechanics and Its Applications | date = 2015 | volume = 422 | pages = 25–39 | doi = 10.1016/j.physa.2014.11.062 | url = https://www.sciencedirect.com/science/article/abs/pii/S0378437114010334 | arxiv = 1412.1024 | bibcode = 2015PhyA..422...25C | s2cid = 4995458 | access-date = 2021-02-10 | archive-date = 2021-10-02 | archive-url = https://web.archive.org/web/20211002175332/https://www.sciencedirect.com/science/article/abs/pii/S0378437114010334 | url-status = live }}

See also

References

{{Reflist}}

  • {{cite journal

| last = Albert

| first = R.

|author2=Barabasi, A.-L.

| title = Statistical mechanics of complex networks

| journal = Reviews of Modern Physics

| volume = 74

| pages = 47–97

| year = 2002

| issue = 1

| arxiv = cond-mat/0106096

| doi = 10.1103/RevModPhys.74.47

| bibcode=2002RvMP...74...47A

| s2cid = 60545

}}

  • {{cite journal

| last = Dorogovtsev

| first = S.

|author2=Mendes, J. F. F.

| title = Evolution of networks

| journal = Advances in Physics

| volume = 51

| pages = 1079–1187

| year = 2002

| arxiv = cond-mat/0106144

| doi = 10.1080/00018730110112519

| issue = 4

|bibcode = 2002AdPhy..51.1079D | s2cid = 429546

}}

  • {{cite journal

|last=Newman

|first=M. E. J.

|title=The structure and function of complex networks

|journal=SIAM Review

|volume=45

|pages=167–256

|year=2003

|doi=10.1137/S003614450342480

|issue=2

|arxiv=cond-mat/0303516

|bibcode=2003SIAMR..45..167N

|s2cid=221278130

}}

Category:Graph theory

Category:Graph invariants

Category:Network theory