All models

MathPets source

Diffusion on a Directed Network

directed linksdiffuse over linksasymmetric flowlink styling
Open in VS Code

Every node starts empty except one source. At each tick, a node shares a fraction of its value equally across its outgoing links; nodes with no outgoing links keep everything they receive.

Because the graph is directed, the flow need not come back. Bright links show the current downhill direction while node size and colour reveal where the quantity accumulates.

board · 684 × 540grid · on