MCPcopy Create free account
hub / github.com/breck7/scroll / defaultStrength

Function defaultStrength

external/.d3.js:8980–8982  ·  view source on GitHub ↗
(link)

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 1

minMethod · 0.80

Tested by

no test coverage detected