HomeAlgorithms & AITriadic Closure — How Social Networks Cluster

Triadic Closure — How Social Networks Cluster

Interactive 3D social-network-growth simulator: watch a graph grow node by node under the Holme–Kim triadic-closure model, tune how often new links close a friend-of-a-friend triangle, and see the clustering coefficient diverge from a random graph in real time.

Algorithms & AI3DModerate60 FPS📱 Mobile-adapted⇄ 2D version
social-network-analysis ↗ Open standalone

Real social networks are not random: if two people share a mutual friend, they are far more likely to eventually connect with each other than two strangers are. This simulator grows a 3D social graph one node at a time using the Holme–Kim triadic-closure model — each arriving node attaches to the network with a first random link, then with tunable probability p either closes a friend-of-a-friend triangle or attaches randomly again. A force-directed layout keeps the live graph readable in 3D while the average local clustering coefficient is computed exactly every step and compared against the clustering expected of an equivalent random (Erdős–Rényi) graph, making visible — in real time — the mechanism that turns a random contact process into the tightly-knit communities seen in real friendship and collaboration networks.

⚙ Under the hood

Grow a 3D social network node by node under the Holme–Kim triadic-closure model and watch the clustering coefficient diverge from a random graph as friend-of-a-friend links form.

social network analysisgraph theoryclustering coefficientnetwork growth modelalgorithmscomplex networks

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)