Move the rewiring slider from 0 β 1 to watch a ring lattice collapse into a small world, then into a random graph.
Imagine every person in a village knows only their 4 nearest neighbours β the people
right next to them in a ring. To send a message across the village takes many hops.
Now randomly swap a few of those local connections for long-distance friendships.
Suddenly the whole village is reachable in just a few hops β yet most people still
mostly know their neighbours.
That's the small world effect. It explains why social networks, power
grids, and even brain connections all have this same property: highly clustered locally,
but surprisingly short paths globally. Move the Rewiring (p) slider
from 0 β 1 to watch the transformation happen live.