From 83ce35c2ddb932c7fd1611b948acb819fd75f619 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Mon, 8 Jul 2019 02:41:27 +0000 Subject: [PATCH] Nevermind, helper function --- GraphNode.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/GraphNode.js b/GraphNode.js index 38172f0..8bef2b7 100644 --- a/GraphNode.js +++ b/GraphNode.js @@ -45,10 +45,6 @@ class GraphNode { const INF = 999999; for (let node of nodes) { - if (node == this) { - continue; - } - // Weak affinity full mesh // Keep unassociated subgroups together this.addAffinity(node, d => d); @@ -73,10 +69,6 @@ class GraphNode { for (let group of this.groups) { for (let node of group.nodes) { - if (node == this) { - continue; - } - this.addAffinity(node, d => d * 100); } }