TL;DR
A network is a set of things (nodes) joined by links. The degree of a node is how many links it has. The degree distribution is the list of fractions: for each number , the share of nodes whose degree is exactly . That single picture shows whether a network is evenly connected, with most nodes having about the same number of links, or whether a few hubs (nodes with very many links) hold most of the links.
Where you'll see it: in studies of the web, citation networks, social networks and protein interaction maps, where the shape of the degree distribution is used to decide which random model a real network resembles.
Intuition
Imagine a town where every house has a road to the same handful of nearby houses. Each house has about four roads. Now imagine a country where most villages have two or three roads, but a few cities have thousands of roads leading into them. If you count the roads per place and draw a histogram, the two countries look completely different. The first has one tall bar. The second has a bar at small numbers and a long thin tail reaching out to very large numbers.
That histogram is the degree distribution. It is a count of how the links are spread across the nodes, and it is the simplest summary of a network's structure that is still informative.
Why does it matter? Two networks can have the same number of nodes and the same average number of links and still behave very differently. A few hubs can spread a disease, carry most traffic, or be the single point of failure. Only the distribution, not the average, shows that.
- fast decay, e^(-k)
- power law, k^(-2.5)
The math
Let a network have nodes. Let be the degree of node , meaning the number of links that touch it. Let be the number of nodes with degree exactly . The degree distribution is
Here is the probability that a node chosen at random has degree . It is a probability mass function over the whole numbers , so its values add up to 1.
Two facts follow directly. The first is the handshake identity. Each undirected link has two ends, so the degrees sum to twice the number of links :
The second is the mean degree, which is the expected value of under this distribution:
To compare a heavy tail with a light one, it helps to use the complementary form of the cumulative distribution, the share of nodes whose degree is at least :
For a Power Law tail, for some exponent . Then . On a log-log plot (both axes logarithmic) a power law is a straight line whose slope is , and that straight line is the signature people look for in real data.
Worked examples
Take five nodes with five undirected links (a link counts once for each end): , , , and .
- Count the degrees. touches four links, so . touches and , so . touches and , so . and each touch one link, so .
- Check the handshake identity. . The count is right.
- Count the nodes at each degree. Two nodes have degree 1, two have degree 2 and one has degree 4.
- Divide by . , , , and for every other . These add to 1.
- Check the mean. , which equals .
Interpretation: a single hub at degree 4 pulls the mean up, but most nodes sit at degree 1 or 2. The distribution shows this in a way the mean alone does not.
Build a random network on nodes, where each possible pair of nodes is joined with probability . This is the Erdős–Rényi model. The degree of one node is the number of its other potential partners that it links to, so each degree is a binomial count with and . The mean is .
- The binomial with a small and a large is close to a Poisson distribution with mean .
- The Poisson probability of degree is .
- Evaluate the pieces. , .
- Multiply. .
- Check the tail. The chance of degree 20 is about , and the chance of degree 30 is essentially zero. Degrees far above the mean are rare.
Interpretation: in this model almost every node has a degree close to 10. There are no hubs, and the distribution is a narrow bump. This is the baseline that real networks are compared against.
Suppose a real network has degrees that follow a power law with exponent , a value in the range often reported for social and information networks. Use the complementary form from The math, where .
- Compare two thresholds. The ratio of nodes with degree at least 100 to nodes with degree at least 10 is .
- Evaluate. .
- Interpret. For every 100 nodes that have degree 10 or more, only about 3 have degree 100 or more.
- Now compare with the random network in Example 2. There, degree 100 is so unlikely that the count is effectively zero. The heavy tail is the difference.
The numbers here follow from the model, so they are illustrative. A real data set has to be fitted and tested, which is covered under Tradeoffs.
Tradeoffs and failure modes
The degree distribution is a strong summary (the full link structure can also be stored as an Adjacency Matrix, but that is far harder to read at a glance), but reading it takes care.
| Situation | What goes wrong | Better choice |
|---|---|---|
| A few hubs dominate the mean | The average degree hides the typical node | Show the full distribution, or the median and the tail share |
| Looking at a histogram on a linear scale | A heavy tail looks flat and empty | Plot on log-log axes and look for a straight line |
| Fitting a power law by least squares on a log-log plot | Binning and sparse tail points bias the slope | Use maximum likelihood with a fitted cut-off, as in Clauset et al. |
| Comparing a network with a random one of the same size | The random one may differ in mean degree | Compare against a random model with the same degree sequence |
| Very small networks | Too few nodes in the tail to see any shape | Report the counts and do not claim a distribution |
A straight line on a log-log plot is necessary but not sufficient for a power law. Many distributions with curved tails look straight over a narrow range. Careful fitting and a comparison with alternatives are needed before the word "scale-free" is justified.
History
The idea that link counts can have a heavy tail appeared in the 1960s. Derek de Solla Price studied citation networks of scientific papers and found that a few papers received far more citations than the rest.
The random-graph model that serves as the baseline dates to the late 1950s, when Erdős and Rényi studied graphs where edges appear at random. Their model produces Poisson-like degree distributions with no hubs, which is why it became the reference point.
In 1999 Albert-László Barabási and Réka Albert proposed a growth rule, Preferential Attachment: each new node links preferentially to nodes that already have many links. Their rule produces a power-law degree distribution. Their paper made the power-law degree distribution a central object of network science. Around the same time, studies of Internet topology reported heavy-tailed degrees in that setting too.
The idea caught on because the power-law shape turned up across very different systems, and because a single growth rule could explain it. Later work showed that many claimed power laws were weaker than first reported, which is why careful fitting became standard.
Check yourself
QuestionRecall: what does the degree of a node count, and what does the degree distribution P(k) give?Show answer
The degree of a node is the number of links that touch it. is the fraction of all nodes whose degree is exactly .
QuestionA network has 4 nodes and 3 links forming a path A-B-C-D. What are the degrees, and what is the mean degree?Show answer
The degrees are , , and . They sum to 6, which equals . The mean degree is .
QuestionWhy does a straight line on a log-log plot suggest a power law, and what is its slope for an exponent of 2.5?Show answer
A power law takes the logarithm of both sides to , which is a straight line in with slope . For the slope is .
QuestionIn a random network of 1001 nodes with link probability 0.01, why is a node with degree 100 essentially impossible?Show answer
Each degree is a binomial count with mean 10, which is close to a Poisson distribution with mean 10. The chance of 100 links is about . The denominator is roughly , far larger than the numerator, so the probability is effectively zero.
QuestionA colleague says the average degree of a network is 6, so the network has no hubs. Why is this claim not justified?Show answer
The mean can be 6 when most nodes have degree 2 or 3 and a few hubs have degree in the hundreds. The mean says nothing about the tail. Only the distribution shows whether hubs exist.
Sources
- Wikipedia, "Degree distribution." https://en.wikipedia.org/wiki/Degree_distribution
- Barabási, A.-L. and Albert, R. (1999). Emergence of scaling in random networks. Science. https://doi.org/10.1126/science.286.5439.509
- Clauset, A., Shalizi, C. R. and Newman, M. E. J. (2009). Power-law distributions in empirical data. SIAM Review. https://doi.org/10.1137/070710111