From bc874a434e6b8cfe01360d3f49d7486b99046a19 Mon Sep 17 00:00:00 2001 From: Pitchaya Boonsarngsuk <2285135b@student.gla.ac.uk> Date: Mon, 5 Feb 2018 11:13:44 +0000 Subject: [PATCH] Link, remove links parameter --- src/link.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/link.js b/src/link.js index 2316ea1..18b69d2 100644 --- a/src/link.js +++ b/src/link.js @@ -8,15 +8,13 @@ import jiggle from "./jiggle"; * - removed other unused functions * Alpha should be constant 1 for accurate simulation */ -export default function(links) { +export default function() { var dataSizeFactor, distance = constant(30), distances = [], nodes, iterations = 1; - if (links == null) links = []; - function force(alpha) { // Each iteration in a tick for (var k = 0, n = nodes.length, source, target, i, j, x, y, l; k < iterations; ++k) {