MCPcopy Create free account
hub / github.com/microsoft/SandDance / initializeDistance

Function initializeDistance

docs/tests/v2/es6/js/sanddance.js:119491–119497  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

119489 }
119490
119491 function initializeDistance() {
119492 if (!nodes) return;
119493
119494 for (var i = 0, n = links.length; i < n; ++i) {
119495 distances[i] = +distance(links[i], i, links);
119496 }
119497 }
119498
119499 force.initialize = function (_) {
119500 nodes = _;

Callers 2

initializeFunction · 0.70
_defaultFunction · 0.70

Calls 1

distanceFunction · 0.70

Tested by

no test coverage detected