MCPcopy Index your code
hub / github.com/microsoft/SandDance / initializeDistance

Function initializeDistance

docs/app/js/sanddance-app.js:136293–136296  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

136291 for(var i = 0, n = links.length; i < n; ++i)strengths[i] = +strength(links[i], i, links);
136292 }
136293 function initializeDistance() {
136294 if (!nodes) return;
136295 for(var i = 0, n = links.length; i < n; ++i)distances[i] = +distance(links[i], i, links);
136296 }
136297 force.initialize = function(_nodes, _random) {
136298 nodes = _nodes;
136299 random = _random;

Callers 2

initializeFunction · 0.70
sanddance-app.jsFile · 0.70

Calls 1

distanceFunction · 0.70

Tested by

no test coverage detected