PPolySim OS

Small-World Network

Six degrees of separation, explained. A few random shortcuts turn an orderly network into one where everyone is surprisingly close — while staying locally clustered.

Small-World NetworkLive

Controls

Presets

Start with an orderly ring where everyone knows their neighbors, then randomly rewire a few connections. Even a handful of long-range shortcuts collapses the average path length — the six-degrees-of-separation effect — while keeping high local clustering. This small-world structure appears in social networks, the brain, and power grids.

▶ Run in Python

Data Inspector

Rewiring p0.10
Clustering0.000
Avg path length0.00

Governing equation

Reading this result: Small-world regime: a few random shortcuts collapse the average path length while clustering stays high — the six-degrees effect.

Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.

or unlock everything with Pro →
★ Sign in to save this setup
Save your tuned setup, or drop this simulation into your own site, docs, or course page.

How it works

The Watts-Strogatz model starts from a ring lattice and rewires each edge with probability p. Even a small p adds long-range shortcuts that collapse the average path length dramatically, while local clustering stays high. This small-world regime describes social networks, neural wiring, and power grids, and explains why rumors and epidemics spread so fast.

Ask the AI about this model

The math, the assumptions, real-world uses, or a code translation — explained for this exact simulation.

More Graph Theory simulations

Frequently asked questions

Is this small-world network Watts-Strogatz tool really free?
Yes. Small-World Network runs entirely in your browser using your device's own compute, so local use is free forever. You only pay Compute Tokens if you scale a job to the cloud.
Do I need to install anything?
No. Everything runs client-side in a modern browser — no downloads, no license, no account required to start.
Can I save or share my simulation?
Create a free account to save projects, and use a shareable embed or minted DOI to publish a live, interactive version anywhere.
How accurate are the results?
The solver uses established numerical methods, but results are for research and educational purposes and should be validated against experiment or professional review before you rely on them.