16 agents spread 0.000 avg 0.000 step 0 converging
disagreement (spread) per iteration — flatter, slower decay at small α; steeper at large α; spikes/ringing once α passes the stability limit

drag a node up or down to pin its value, then watch its neighbours get pulled toward it

Average Consensus

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

  1. Raise the step size to see faster agreement, then push it farther to see overshoot or divergence.
  2. 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.

Copy link