From 1700900a03a328b401b02511b4aa719d9ebc1ccf Mon Sep 17 00:00:00 2001 From: Joao Menighin Date: Wed, 28 Feb 2018 17:21:54 -0300 Subject: [PATCH 1/2] Adding updateClusteredNode to network.prototype --- lib/network/Network.js | 1 + lib/network/modules/Clustering.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/network/Network.js b/lib/network/Network.js index 67ec6da564..efb673d522 100644 --- a/lib/network/Network.js +++ b/lib/network/Network.js @@ -496,6 +496,7 @@ Network.prototype.cluster = function() {return this.clustering.clust Network.prototype.getNodesInCluster = function() {return this.clustering.getNodesInCluster.apply(this.clustering,arguments);}; Network.prototype.clusterByConnection = function() {return this.clustering.clusterByConnection.apply(this.clustering,arguments);}; Network.prototype.clusterByHubsize = function() {return this.clustering.clusterByHubsize.apply(this.clustering,arguments);}; +Network.prototype.updateClusteredNode = function() {return this.clustering.updateClusteredNode.apply(this.clustering,arguments);}; /** * This method will cluster all nodes with 1 edge with their respective connected node. diff --git a/lib/network/modules/Clustering.js b/lib/network/modules/Clustering.js index 55f78a58b7..276b4efd07 100644 --- a/lib/network/modules/Clustering.js +++ b/lib/network/modules/Clustering.js @@ -897,7 +897,7 @@ class ClusterEngine { /** * Using a clustered nodeId, update with the new options - * @param {vis.Edge.id} clusteredNodeId + * @param {Node.id} clusteredNodeId * @param {object} newOptions */ updateClusteredNode(clusteredNodeId, newOptions) { From 997a218e7f4bc246dfaa35f37367900dcc86d117 Mon Sep 17 00:00:00 2001 From: Joao Menighin Date: Thu, 1 Mar 2018 15:43:35 -0300 Subject: [PATCH 2/2] More clustering methods missing from the Network.prototype --- lib/network/Network.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/network/Network.js b/lib/network/Network.js index efb673d522..3d4c2729e7 100644 --- a/lib/network/Network.js +++ b/lib/network/Network.js @@ -497,6 +497,10 @@ Network.prototype.getNodesInCluster = function() {return this.clustering.getNo Network.prototype.clusterByConnection = function() {return this.clustering.clusterByConnection.apply(this.clustering,arguments);}; Network.prototype.clusterByHubsize = function() {return this.clustering.clusterByHubsize.apply(this.clustering,arguments);}; Network.prototype.updateClusteredNode = function() {return this.clustering.updateClusteredNode.apply(this.clustering,arguments);}; +Network.prototype.getClusteredEdges = function() {return this.clustering.getClusteredEdges.apply(this.clustering,arguments);}; +Network.prototype.getBaseEdge = function() {return this.clustering.getBaseEdge.apply(this.clustering,arguments);}; +Network.prototype.getBaseEdges = function() {return this.clustering.getBaseEdges.apply(this.clustering,arguments);}; +Network.prototype.updateEdge = function() {return this.clustering.updateEdge.apply(this.clustering,arguments);}; /** * This method will cluster all nodes with 1 edge with their respective connected node.