ArticleslgStudy

computer science

Degree distribution

Degree distribution is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Degree distribution rather than just read about it. In short: 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.

Degree distribution — main illustration
Degree distribution — illustration

Key takeaways

  • Degree distribution belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Degree distribution to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Degree distribution from memory before moving on to harder problems.

Reference excerpt

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)=nkn. 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−1k)pk(1−p)n−1−k, (or Poisson in the limit of large n, if the average degree ⟨k⟩=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)∼k−γ, where γ is a constant. Such networks are called scale-free networks and have attracted particular attention for their structural and dynamical properties.

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. 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)=k+1⟨k⟩P(k+1), where ⟨k⟩ 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: ∑kkq(k)>1⇒⟨k2⟩/⟨k⟩−1>1⇒⟨k2⟩−2⟨k⟩>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: G0(x)=∑kP(k)xk and G1(x)=∑kq(k)xk=∑kk⟨k⟩P(k)xk−1 G1(x) can also be obtained from derivatives of G0(x): G1(x)=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)=1k!dkGd⁡xk|x=0 Some properties, e.g. the moments, can be easily calculated from G0(x) and its derivatives:

⟨k⟩=G'0(1) ⟨k2⟩=G′'0(1)+G'0(1) And in general:

⟨km⟩=[(x⁡d⁡dx⁡)mG0(x)]x=1 For Poisson-distributed random networks, such as the ER graph, G1(x)=G0(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 G0(x) and G0(G1(x)). By extension, the distribution of m-th neighbors is generated by: G0(G1(...G1(x)...)), with m−1 iterations of the function G1 acting on itself. The average number of 1st neighbors, c1, is ⟨k⟩=dG0(x)dx|x=1 and the average number of 2nd neighbors is: c2=[ddxG0(G1(x))]x=1=G1′(1)G'0(G1(1))=G1′(1)G'0(1)=G′'0(1)

Degree distribution for directed networks

… excerpt ends here. Continue reading the full article.

Illustrations

Degree distribution illustration
Degree distribution: In/out degree distribution for Wikipedia's hyperlink graph (logarithmic scales)
In/out degree distribution for Wikipedia's hyperlink graph (logarithmic scales)

Worked examples

Example 1 — a first encounter with Degree distribution

Start with the simplest possible case. Write down what Degree distribution claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Degree distribution before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Degree distribution ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Degree distribution

In research
Degree distribution appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Degree distribution in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Degree distribution is common in secondary-school and first-year university syllabi. It links to neighbouring topics Graph invariants, Graph theory, Network theory, so understanding it makes those chapters shorter.
In everyday life
Look for Degree distribution outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Degree distribution” →

How to study Degree distribution in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Degree distribution means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Degree distribution out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Degree distribution in simple terms?

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 incorrec…

Why does Degree distribution matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Degree distribution?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Degree distribution.

Tags

  • Graph invariants
  • Graph theory
  • Network theory

Keep exploring