(link)
| 8978 | if (links == null) links = []; |
| 8979 | |
| 8980 | function defaultStrength(link) { |
| 8981 | return 1 / Math.min(count[link.source.index], count[link.target.index]); |
| 8982 | } |
| 8983 | |
| 8984 | function force(alpha) { |
| 8985 | for (var k = 0, n = links.length; k < iterations; ++k) { |