graphology-indices
Advanced tools
Comparing version 0.13.1 to 0.13.2
@@ -436,2 +436,4 @@ /** | ||
UndirectedLouvainIndex.prototype.fastDelta = function(i, degree, targetCommunityDegree, targetCommunity) { | ||
var M = this.M; | ||
var targetCommunityTotalWeight = this.totalWeights[targetCommunity]; | ||
@@ -443,3 +445,3 @@ | ||
targetCommunityDegree - | ||
(degree * targetCommunityTotalWeight * this.resolution) | ||
(degree * targetCommunityTotalWeight * this.resolution) / (2 * M) | ||
); | ||
@@ -449,2 +451,4 @@ }; | ||
UndirectedLouvainIndex.prototype.fastDeltaWithOwnCommunity = function(i, degree, targetCommunityDegree, targetCommunity) { | ||
var M = this.M; | ||
var targetCommunityTotalWeight = this.totalWeights[targetCommunity]; | ||
@@ -456,3 +460,3 @@ | ||
targetCommunityDegree - | ||
(degree * (targetCommunityTotalWeight - degree) * this.resolution) | ||
(degree * (targetCommunityTotalWeight - degree) * this.resolution) / (2 * M) | ||
); | ||
@@ -459,0 +463,0 @@ }; |
{ | ||
"name": "graphology-indices", | ||
"version": "0.13.1", | ||
"version": "0.13.2", | ||
"description": "Miscellaneous indices for graphology.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40976
1126