Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

graphology-indices

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphology-indices - npm Package Compare versions

Comparing version 0.13.1 to 0.13.2

8

neighborhood/louvain.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc