Agent-based modeling in JavaScript in the browser or on the server. [v0.4.8]

Network Diffusion

This intentionally abstract simulation depicts the dynamics of a network tending toward the mean.

Each agent is connected to its closest geographic neighbors, and possibly a few other random agents in the network, depending on the value of REWIRING_PROBABILITY. With each tick of the simulation, an agent that is larger than its neighbor will transfer some of its size to the neighbor, shrinking the agent and growing the neighbor. With enough time, the network reaches stasis.

Try adjusting the parameters to see how it affects the network dynamics.