Small-World Networks (Watts-Strogatz Model)

How a little randomness creates six degrees of separation

Network Graph p = 0.010
C(p)/C(0) and L(p)/L(0) vs Rewiring Probability

Presets

Parameters

Rewiring Probability (p) 0.010
0 0.01 0.1 1.0
Node Count (N) 40
Average Degree (K) 8

Current Metrics

Clustering C(p)
--
Path Length L(p)
--
C(p)/C(0)
--
L(p)/L(0)
--
Edges
--
Shortcuts
--

Legend

Regular Edge
Rewired Shortcut
C(p)/C(0) Clustering
L(p)/L(0) Path Length
Small-World Regime

About the Watts-Strogatz Model

The Watts-Strogatz model (1998) bridges the gap between regular lattices and random graphs, revealing the "small-world" property found in many real networks. It starts with a ring lattice of N nodes, each connected to its K nearest neighbors. Then, with probability p, each edge is rewired to a random destination. The remarkable insight is that even tiny values of p (around 0.01) create enough "shortcuts" to dramatically reduce the average path length between any two nodes, while the clustering coefficient remains nearly as high as the regular lattice.

The clustering coefficient C measures the fraction of a node's neighbors that are also connected to each other -- high in regular lattices (all neighbors know each other) and low in random graphs. The average path length L is the mean number of hops between any pair of nodes -- high in regular lattices and low when shortcuts exist. The iconic C(p)/C(0) vs L(p)/L(0) plot shows the "small-world regime" where both high clustering and short paths coexist, explaining phenomena like "six degrees of separation" in social networks.

Small-world networks appear throughout nature and society: neural networks in the brain (highly clustered local circuits with long-range connections), protein interaction networks, the world-wide web, social networks (high local clustering with rare but powerful cross-group friendships), power grids, and epidemic spreading networks. Understanding the small-world property helps explain how diseases spread rapidly, how innovation propagates through organizations, and how the brain achieves both specialized local processing and global integration.

Use the rewiring probability slider to transition from a regular lattice (p=0) through the small-world regime (p around 0.01) to a random graph (p=1). Watch the network visualization: regular edges are shown in blue, while rewired shortcuts appear in gold. The dual-curve plot below shows how C and L change with p on a logarithmic scale -- the shaded region marks the small-world sweet spot. Try the presets: "Regular Lattice" shows high clustering but long paths, "Small World" is the optimal regime, and "Sweep Animation" automatically transitions through all regimes.