()
| 9104 | if (nodes == null) nodes = []; |
| 9105 | |
| 9106 | function step() { |
| 9107 | tick(); |
| 9108 | event.call("tick", simulation); |
| 9109 | if (alpha < alphaMin) { |
| 9110 | stepper.stop(); |
| 9111 | event.call("end", simulation); |
| 9112 | } |
| 9113 | } |
| 9114 | |
| 9115 | function tick(iterations) { |
| 9116 | var i, n = nodes.length, node; |