in reply to 3 Dimensional repelling particle simulation

for $node (@nodes) { for $link ($node->{links}) { &updatePosition($link->node,$link); } }
What this may not take into account is that in real life all nodes move at once, not one at a time, but it might help you get started.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.