Average Consensus
Vary how strongly nodes respond to their neighbours and see agreement speed up, overshoot, or break down.
16 agents spread 0.000 avg 0.000 step 0 converging
drag a node up or down to pin its value, then watch its neighbours get pulled toward it
What you are looking at
- Nodes
- The agents, with size and colour encoding their values.
- Edges
- The connections between agents that exchange values.
- Spread chart
- The disagreement over successive iterations.
Try this
- Raise the step size to see faster agreement, then push it farther to see overshoot or divergence.
- Reset values to start over and see the nodes approach a new mean.
Key idea
On this connected graph, a sufficiently small step lets local updates recover the global average.