Back to Graph Theory Series

Part 25: Network Science

September 20, 2026 Wasil Zafar 32 min read

A 1967 letter-passing experiment claimed any two Americans were connected by six intermediaries. It took three more decades for mathematicians to explain, precisely, why real networks tend to work that way at all.

Table of Contents

  1. A Bit of History
  2. The Network Science Lens
  3. Centrality Measures
  4. Community Detection
  5. Small-World Networks
  6. Scale-Free Networks
  7. Real-World Applications
  8. Exercises
  9. Conclusion & Next Steps

A Bit of History

Psychologist Stanley Milgram's 1967 "small world" experiment asked ordinary Americans to route a letter to a stranger using only acquaintance chains — the letters that arrived took a median of about six intermediaries, popularizing the phrase "six degrees of separation" decades before anyone had the mathematics to explain why. That explanation arrived in 1998, when Duncan Watts and Steven Strogatz published "Collective Dynamics of 'Small-World' Networks," formalizing exactly what structural property makes short paths so common in real networks. A year later, Albert-László Barabási and Réka Albert published "Emergence of Scaling in Random Networks" (1999), explaining why real-world networks are dominated by a few extremely well-connected "hubs" rather than the uniform degree distribution the Erdős–Rényi model (Part 20) predicts. Centrality measures themselves were systematically formalized earlier, largely through Linton Freeman's influential 1977-1979 papers unifying degree, betweenness, and closeness centrality into one coherent framework.

The Network Science Lens

Graph theory and network science study the same mathematical object, but they often ask different kinds of questions. Graph theory tends to ask what is possible, impossible, optimal, or guaranteed for a graph. Network science starts with a graph measured from the real world and asks what patterns it contains, whether those patterns are surprising, and what mechanisms might have produced them.

Three Scales Local Mesoscopic Global

Zooming In and Out on the Same Network

A useful way to organize network science is by scale. At the local scale we ask which vertices matter. At the mesoscopic scale we ask how vertices group into communities. At the global scale we ask about overall path lengths, clustering, robustness, and degree distributions.

Local, mesoscopic, and global views of a network Three panels show a highlighted important vertex, two communities, and a whole-network structural view. LOCAL MESOSCOPIC GLOBAL Which vertices are important? Which groups belong together? What shape does the whole network have? v centrality communities + bridges paths + clustering + degrees
The same dataset can support local, group-level, and whole-network questions. A useful metric at one scale may say very little at another.

Centrality Measures

"How important is this vertex?" has no single answer — different centrality measures capture genuinely different notions of importance:

  • Degree centrality: simply the vertex's degree — how many direct connections it has.
  • Betweenness centrality: the fraction of shortest paths between all other vertex pairs that pass through this vertex — capturing "bridge" or "broker" importance, independent of raw connection count.
  • Closeness centrality: the inverse of the sum of shortest-path distances to every other vertex — capturing how quickly this vertex can reach the rest of the network.
  • Eigenvector centrality: a vertex is important if it connects to other important vertices — precisely the same self-referential eigenvector idea underlying PageRank from a previous deep dive.
Centrality Intuition Different Question, Different Winner

Four Ways a Vertex Can Matter

Centrality measures are not competing estimates of one hidden quantity called “importance.” They answer different questions. The motifs below deliberately isolate each idea.

Four centrality motifs Four panels illustrate degree, betweenness, closeness, and eigenvector centrality with highlighted vertices. DEGREE BETWEENNESS CLOSENESS EIGENVECTOR many direct neighbors lies on many shortest paths small distance to everyone connected to important nodes hub good for direct reach B broker between groups C 2 hops112 hops fast access to the network E prestige from prestigious neighbors
No centrality is universally “best.” Choose the measure that matches the mechanism you are trying to capture.
$$C_D(v)=\frac{\deg(v)}{n-1},\qquad C_C(v)=\frac{n-1}{\sum_{u\neq v} d(u,v)}$$ $$C_B(v)=\sum_{s\neq v\neq t}\frac{\sigma_{st}(v)}{\sigma_{st}},\qquad x_v=\frac{1}{\lambda}\sum_u A_{vu}x_u$$

Here \(\sigma_{st}\) is the number of shortest paths from \(s\) to \(t\), while \(\sigma_{st}(v)\) counts those that pass through \(v\). The eigenvector equation says a vertex receives score from the scores of its neighbors. For disconnected graphs, ordinary closeness needs care; harmonic closeness, which sums reciprocal finite distances, is often the safer variant.

Memory Aid: Ask What “Important” Means

Degree asks “who knows many?” Betweenness asks “who brokers routes?” Closeness asks “who is near everyone?” Eigenvector asks “who is connected to the well-connected?” The answer can change completely when the question changes.

Community Detection

Community detection asks: can a network's vertices be partitioned into tightly-connected groups, with comparatively few edges between groups? This is closely related to, but distinct from, the global minimum cut problem (Stoer-Wagner/Karger's deep dives) — community detection typically seeks many well-separated groups simultaneously, optimizing a global quality measure called modularity (comparing actual within-group edge density against what random chance would predict), rather than finding a single optimal 2-way split.

Key Insight

Two influential and very different community-detection strategies both appear as algorithm deep dives alongside this part: the Girvan-Newman algorithm repeatedly removes the highest-betweenness-centrality edges (the network's "bridges") to progressively split the graph into communities, while the Louvain method instead greedily optimizes modularity directly by moving vertices between candidate communities — a "top-down cutting" strategy versus a "bottom-up assembling" strategy for the same underlying goal.

Community Intuition Dense Inside, Sparse Between

A Community Is Not the Same as a Connected Component

Two communities may still be connected by several edges. The point is relative density: many connections inside groups, comparatively few connections between them. A connected component asks whether any path exists at all; community detection asks whether the network has meaningful internal organization.

Two dense communities connected by bridge edges Two clusters are each densely connected and linked by two sparse bridge edges. One panel highlights bridge removal, another highlights local reassignment. GIRVAN-NEWMAN VIEW LOUVAIN VIEW remove high-betweenness bridge edges move vertices to improve modularity bridges carry many cross-community routes local moves seek a better group assignment
Girvan-Newman exposes communities by cutting bridges; Louvain searches for assignments with higher modularity. Both target group structure, but by very different mechanisms.

For an undirected, unweighted graph, a common community-quality score is modularity. It rewards within-community edges that are more numerous than a degree-preserving random null model would predict:

$$Q=\frac{1}{2m}\sum_{i,j}\left(A_{ij}-\frac{k_i k_j}{2m}\right)\delta(c_i,c_j)$$

The term \(A_{ij}\) records whether the observed edge exists; \(k_i k_j/(2m)\) is the null-model expectation; and \(\delta(c_i,c_j)\) keeps only vertex pairs placed in the same community. Intuitively, modularity asks: “Are these groups more internally connected than their degrees alone would lead us to expect?”

Small-World Networks

The Watts-Strogatz model starts from a regular ring lattice (every vertex connected to its \(k\) nearest neighbors) and randomly "rewires" a small fraction of edges to arbitrary distant vertices. This tiny amount of randomness has an outsized effect: it dramatically shrinks the network's average shortest-path length (creating "shortcuts" across the whole structure) while barely disturbing the high local clustering the original ring lattice had — precisely the combination (high clustering and short average path length) observed in real social networks, and precisely what a purely random Erdős–Rényi graph fails to reproduce (it has short paths, but essentially no local clustering).

Watts-Strogatz Intuition A Few Shortcuts Change Many Distances

From Lattice to Small World

The surprising part of the Watts-Strogatz model is not that random edges shorten paths. It is that a small number of long-range shortcuts can shorten distances between enormous numbers of vertex pairs while leaving most local neighborhoods almost untouched.

Watts-Strogatz progression from lattice to small world to random network Three circular networks show regular local edges, a few long-range shortcuts, and a more randomized network. REGULAR LATTICE SMALL WORLD MORE RANDOM high clustering, long routes high clustering, short routes short routes, weaker local structure two long-range shortcuts
Small-world structure lives in the middle: enough local edges to preserve clustering, plus enough shortcuts to collapse global distances.

Two statistics capture that combination. The local clustering coefficient of a vertex asks what fraction of its neighbors are connected to one another, while the average path length measures typical shortest-path distance across a connected network:

$$C_v=\frac{2T_v}{k_v(k_v-1)},\qquad L=\frac{1}{\binom{n}{2}}\sum_{u

Here \(T_v\) is the number of edges among the \(k_v\) neighbors of \(v\). A small-world network is therefore not merely a graph with short paths; its signature is the coexistence of short global routes and strong local clustering.

Scale-Free Networks

The Barabási-Albert model grows a network one vertex at a time, with each new vertex connecting preferentially to already well-connected existing vertices — a "rich get richer" mechanism called preferential attachment. This produces a power-law degree distribution (a small number of extremely high-degree "hub" vertices, and a long tail of low-degree vertices) rather than the roughly uniform degree distribution an Erdős–Rényi random graph produces — matching empirical observations of the actual web graph, airline route networks, and citation networks far more closely than uniform-degree random models ever could.

Preferential Attachment Growth + Rich Get Richer

How a Hub Emerges Without Being Designed

Preferential attachment combines two ingredients: the network grows, and new vertices are more likely to connect to vertices that already have many links. A small early advantage can therefore compound over many arrival steps.

$$\Pr(\text{new vertex attaches to }i)=\frac{k_i}{\sum_j k_j}$$
Preferential attachment growth and resulting heavy tail Three network growth stages show a hub accumulating links, followed by a schematic degree-distribution plot. GROWTH CREATES UNEQUAL OPPORTUNITY SCHEMATIC DEGREE TAIL Step 1 Step 2 Later hub early degree attracts later degree; inequality compounds degree k frequency many low-degree few hubs
The idealized Barabási-Albert mechanism creates a heavy-tailed degree pattern because popularity feeds future popularity.

In the idealized Barabási-Albert model, this mechanism produces an asymptotic degree distribution of the form \(P(k)\propto k^{-3}\). That exponent is a property of this particular model, not a universal law for every network with hubs.

Additional Context: “Scale-Free” Is a Hypothesis to Test

Real networks often have highly unequal degree distributions, but that does not automatically prove a clean power law or a Barabási-Albert growth mechanism. Empirical network science distinguishes the observation “there are hubs and a heavy tail” from the stronger statistical claim “the degree distribution follows a power law.” The model is valuable because it explains one mechanism that can create hubs, not because every real network must follow it exactly.

From Network Picture to Evidence

A reliable network-science workflow moves from representation to measurement to comparison. A statistic becomes informative when it is interpreted against a plausible baseline or mechanism, rather than treated as meaningful merely because it can be computed.

Analysis Workflow
Network science analysis workflow Four stages show defining nodes and edges, measuring structure, comparing against a null model, and interpreting the mechanism. 1. MODEL 2. MEASURE 3. COMPARE 4. INTERPRET What are nodes?What counts as an edge? centralitycommunities, paths, degrees null/random modelor alternative mechanism What process couldproduce the pattern? A number is evidence only after you know what it measures and what baseline it beats.
Network science is strongest when descriptive statistics are paired with a comparison model and a plausible mechanism.

Real-World Applications

Case Study

Identifying Influential Spreaders in Epidemic & Information Networks

Public health researchers use betweenness and eigenvector centrality to identify individuals whose vaccination or isolation would most effectively slow disease spread through a contact network — targeting structurally important "bridge" individuals rather than simply the most socially active ones. The same centrality toolkit, applied to information-sharing networks, helps platforms identify accounts whose removal would most effectively contain the spread of coordinated misinformation campaigns.

EpidemiologyNetwork Science

Part 25 Mental Model

Network science becomes easier to remember when each idea is tied to the specific question it answers.

Degree

Direct reach: who has many immediate neighbors?

Betweenness

Brokerage: who repeatedly sits on shortest routes between other vertices?

Eigenvector

Prestige: who is connected to vertices that are themselves well connected?

Community

Mesoscopic structure: look for groups that are dense inside and relatively sparse between. A community is not the same thing as a connected component.

Small World

Local plus global: high neighborhood clustering can coexist with surprisingly short paths across the whole network.

Workflow

Interpret carefully: model first, measure second, compare against a meaningful baseline, and only then draw domain conclusions.

Exercises

  1. Compute degree centrality by hand for every vertex in a small 6-vertex graph, and identify the vertex with the highest degree centrality.
  2. Explain in your own words why a vertex can have low degree centrality but high betweenness centrality, giving a concrete example (hint: think of a single "bridge" vertex connecting two otherwise-separate dense clusters).
  3. Describe the Watts-Strogatz rewiring process, and explain why rewiring even a small fraction of edges dramatically shrinks average path length while preserving local clustering.
  4. Challenge: Research why the Barabási-Albert model's "rich get richer" preferential attachment mechanism produces a power-law degree distribution, connecting this to the model's growth-over-time construction.

Conclusion & Next Steps

Network science turns graph theory's abstract machinery toward empirical questions: what do real-world networks actually look like, and why do they consistently share certain structural signatures? Having studied networks as objects of empirical study, the series now turns to graphs as objects of machine learning — teaching computers to learn from graph-structured data directly.

Next in the Series

In Part 26: Graph Machine Learning & Knowledge Graphs, we'll explore graph neural networks and how modern AI systems represent and reason over relational data.