Computer Engineering is coming soon

We're still writing and reviewing the notes for every subject, and we'll open it when every subject is ready. Meanwhile you can practise aptitude, ask Aria about any subject, or see the branches that are ready.

Preferential attachment and growth models

Preferential attachment (Barabási–Albert) growth models explain why many real networks become scale-free with a power-law degree distribution (exponent ≈ 3) by new nodes attaching preferentially to high-degree nodes.

Drafted with Aria, reviewed by the AiCanCode.org team · Updated . How we write and check our notes. Spotted an error? Use Give Feedback at the bottom of the page.

Why it matters

Two sentences: Engineers use preferential-attachment growth models to explain and predict how network structure (who connects to whom) evolves in systems such as the Web, citation networks, social platforms and some communication networks. Understanding these models helps in designing robust systems, predicting hubs, and making algorithms for link prediction, influence maximisation and anomaly detection.

Key ideas

Start with simple definitions and build up.

  • Network / Graph: a set of nodes (vertices) and edges (links). We assume undirected simple graphs unless stated otherwise.
  • Degree (k): for a node, the number of incident edges. Degree is an integer, non-negative.
  • Degree distribution P(k): the fraction (probability) of nodes that have degree k.
  • Power law: a distribution is a power law if P(k) ∝ k^{-γ} for some constant exponent γ > 1. Power-law tails decay much slower than exponential tails.
  • Scale-free network: a network with a degree distribution following a power law over a significant range of k.
  • Growth model: a rule for how nodes and edges are added (or removed) over time.
  • Preferential attachment: a rule for linking where a new node connects to existing node i with probability proportional to i's current degree. In words: "the rich get richer".

Barabási–Albert (BA) model (standard statement used in exams): Assumptions: start from a small connected seed graph of m0 nodes. At each discrete time step t = 1, 2, 3, ... add one new node with exactly m (≤ m0) edges that link the new node to m distinct existing nodes. The probability Π_i that the new node connects to existing node i equals the node's degree divided by the sum of all degrees.

Formal definition (write this on answer scripts):

  • Growth: at each time step add one new node with m edges.
  • Preferential attachment rule: Π_i = k_i / Σ_j k_j.

Derivation universities expect (continuous-time / mean-field approximation):

  1. Let t be the number of nodes added so far (so total nodes ≈ t + m0). At large t we can ignore m0.
  2. Total degree in the network after t steps is Σ_j k_j = 2·E = 2·(m·t) because each new node adds m edges. So Σ_j k_j ≈ 2 m t.
  3. The expected rate of change of degree k_i of a node i that arrived at time t_i is dk_i/dt = m · Π_i = m · (k_i / (2 m t)) = k_i / (2 t). The factor m appears because each new node makes m attachments; each attachment chooses node i with probability Π_i.
  4. Solve the differential equation with initial condition k_i(t_i) = m: dk_i / k_i = dt / (2 t) ⇒ ln k_i = (1/2) ln t + C ⇒ k_i(t) = m (t / t_i)^{1/2}.
  5. Find the cumulative probability that a randomly chosen node has degree ≥ k: nodes born at times t_i ≤ t·(m/k)^2 will have degree ≥ k. So P(k_i ≥ k) = (m/k)^2 for k ≥ m.
  6. Differentiate to get the degree distribution: P(k) = d/dk [1 − P(k_i ≥ k)] = 2 m^2 k^{-3}. Thus P(k) ∝ k^{-3}, i.e. γ = 3.

Assumptions and limits to state: large network limit (t → ∞), continuous-time approximation (t treated as continuous), no node deletion, edges undirected and simple, attachments independent and sampled without strong degree correlations. Many exam answers must state these assumptions.

Generalizations to mention briefly (write names only in answers):

  • Additive initial attractiveness (A, a constant): Π_i ∝ k_i + A (Dorogovtsev–Mendes). This shifts the exponent to γ = 3 + A/m for the undirected BA extension (requires A > −m so that k_i + A ≥ 0 at birth).
  • Non-linear preferential attachment Π_i ∝ k_i^α: if α < 1 the degree distribution is stretched exponential; if α = 1 you get power law; if α > 1 you can get condensation (a few nodes capture a finite fraction of edges).

Diagram to draw (exact instructions for exam):

  • Draw 3–4 snapshots labelled t = 1, 2, 3, 4. For each snapshot draw nodes as circles and edges as straight lines. For t = 0 show a seed of m0 = 3 fully connected nodes (triangle). For t = 1 draw a new node with m = 2 edges attached to two existing nodes; mark the degrees near each node (k = 2, 3, ...). Label one node as high-degree hub and show in the next snapshot another new node preferring to attach to it. Also annotate the rule Π_i = k_i / Σ_j k_j near the figure.

Explain typical exam statement: "Show that the BA model gives P(k) ∝ k^{-3}" — follow the derivation steps 1–6 above and state the assumptions.

Formulas

Π_i = k_i / Σ_j k_j — Π_i is the probability a new edge connects to existing node i; dimensionless; applies in preferential attachment models where selection probability is proportional to degree.

Σ_j k_j ≈ 2 m t — in the large-t limit; exactly Σ_j k_j = 2 E0 + 2 m t, where E0 is the number of edges in the seed; units: dimensionless (count of edge-ends); applies when each new node brings m edges and no deletion.

dk_i/dt = m · Π_i = k_i / (2 t) — mean-field (continuous) rate equation for degree growth of node i; k_i is dimensionless, t is number of added nodes (dimensionless); valid in large-t approximation.

k_i(t) = m · (t / t_i)^{1/2} — solution of the rate equation with initial condition k_i(t_i) = m; dimensionless.

P(k_i ≥ k) = (m / k)^2 — cumulative degree distribution in BA model (for k ≥ m); dimensionless.

P(k) = 2 m^2 · k^{-3} — degree distribution (probability mass function in the continuum/mean-field limit) for the BA model; dimensionless. Exact discrete BA solution: P(k) = 2 m (m + 1) / [k (k + 1) (k + 2)], which has the same k^{-3} tail.

Note: "units" here are counts (dimensionless). Use these formulas only with the BA assumptions stated earlier.

Worked examples

Example 1 — Derive the k^{-3} law (model-answer style). Steps:

  1. State BA assumptions: growth by one node with m links, preferential attachment Π_i = k_i / Σ_j k_j.
  2. Note Σ_j k_j = 2 m t.
  3. Write expected growth: dk_i/dt = m·(k_i / (2 m t)) = k_i/(2 t).
  4. Solve: dk_i / k_i = dt/(2 t) ⇒ ln k_i = (1/2) ln t + C. Use k_i(t_i) = m ⇒ C = ln m − (1/2) ln t_i. So k_i(t) = m (t / t_i)^{1/2}.
  5. Probability node i has degree at least k at time t: k_i(t) ≥ k ⇔ t_i ≤ t (m/k)^2. Assuming uniform arrival times, fraction of nodes with t_i ≤ that value equals (m/k)^2. So P(k_i ≥ k) = (m/k)^2.
  6. Differentiate: P(k) = −d/dk P(k_i ≥ k) = 2 m^2 k^{-3}. Conclude γ = 3. Final line (write bold in exam): P(k) = 2 m^2 k^{-3}, so the BA model is scale-free with exponent γ = 3.

Example 2 — Numerical evaluation for m = 2. Problem: For a large BA network with m = 2, compute (a) the probability a node has degree exactly k = 6, (b) probability degree ≥ 6. Solution steps and numbers:

  • Use P(k) = 2 m^2 k^{-3} and P(k_i ≥ k) = (m/k)^2.
  • m = 2. (a) P(k = 6) = 2 * 2^2 * 6^{-3} = 8 / 216 = 0.037037... ⇒ 0.037037 (≈ 3.70%). (b) P(k ≥ 6) = (2 / 6)^2 = (1/3)^2 = 1/9 = 0.111111... ⇒ 0.111111 (≈ 11.11%). Show units: probabilities dimensionless.

Example 3 — Small-step growth (short descriptive model answer expected in labs):

  • Start with seed m0 = 3 (triangle). Let m = 1 for simplicity. At t = 1 add node A connecting to any node (all degree equal 2), choose any — say node X. Now degrees: X becomes 3, others 2, new node 1. Next new node more likely to connect to X because k_X = 3. This demonstrates the hub formation intuition. (No numeric formula needed; draw the three snapshots and label degrees.)

Common mistakes

  • Applying P(k) = 2 m^2 k^{-3} for k < m. The BA solution holds for k ≥ m (minimum degree is m).
  • Omitting assumptions: answers must state growth, attachment proportional to degree and no deletion for the BA derivation to hold.
  • Confusing cumulative and probability density: P(k_i ≥ k) = (m/k)^2 but P(k) = 2 m^2 k^{-3}.
  • Forgetting normalization/constant factors when asked for exact P(k) (not just exponent).

For your exam

Question types you will see on this topic:

  • Definitions and short notes: define preferential attachment, growth model, scale-free network; explain intuition in 2–3 sentences.
  • Derivation: "Show that the BA model produces P(k) ∝ k^{-3}." Provide the six-step mean-field derivation above and state assumptions.
  • Numerical: compute P(k) or cumulative probability for given m and k (like Example 2). Carry units (dimensionless) and show steps.
  • Diagram: draw snapshots showing growth and annotate the selection probability Π_i.
  • Short discussion: describe effect of adding initial attractiveness or non-linear attachment (explain qualitatively what changes). If asked for formulas for generalized models, explicitly state the model and assumptions and show the modified rate equation before solving.

What a full-marks answer includes:

  • Precise definitions of key terms (bold the terms if writing notes), clear statement of BA rules (growth and Π_i), the derivation with algebraic steps, and statement of assumptions and limits. For numerical questions show substitution into the formulas and final numerical probability with appropriate rounding.

Quick check

  1. In the BA model, what is the key rule that determines how new nodes choose existing nodes to connect to?
  2. For BA with m = 3, what is P(k ≥ 9) approximately?
  3. If preferential attachment probability is Π_i ∝ k_i^α with α > 1, do you get a power-law degree distribution with exponent 3? (yes/no)

Answers: 1) Preferential attachment: new nodes attach to existing nodes with probability proportional to current degree k_i. 2) P(k ≥ 9) = (m/k)^2 = (3/9)^2 = (1/3)^2 = 1/9 ≈ 0.1111. 3) No — α > 1 typically leads to condensation / winner-takes-most behaviour, not the standard power law with exponent 3.

Finished this topic? Mark it so your progress, study plan and readiness keep up.

Stuck on something here?