From ba6ba696026f3699c663fbce2c88b689c9832866 Mon Sep 17 00:00:00 2001 From: Alex de Mulder Date: Mon, 25 May 2015 16:59:54 +0200 Subject: [PATCH] tweaked function naming --- lib/network/modules/LayoutEngine.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/network/modules/LayoutEngine.js b/lib/network/modules/LayoutEngine.js index fa4e1fbc..65b8f691 100644 --- a/lib/network/modules/LayoutEngine.js +++ b/lib/network/modules/LayoutEngine.js @@ -331,7 +331,7 @@ class LayoutEngine { if (this.body.nodes.hasOwnProperty(nodeId)) { node = this.body.nodes[nodeId]; if (node.edges.length === hubSize) { - this._setLevel(0, node); + this._setLevelByHubsize(0, node); } } } @@ -347,7 +347,7 @@ class LayoutEngine { * @param parentId * @private */ - _setLevel(level, node) { + _setLevelByHubsize(level, node) { if (this.hierarchicalLevels[node.id] !== undefined) return; @@ -360,7 +360,7 @@ class LayoutEngine { else { childNode = node.edges[i].to; } - this._setLevel(level + 1, childNode); + this._setLevelByHubsize(level + 1, childNode); } }