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); } }