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

markov-cluster

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markov-cluster - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

16

lib/nodes.js

@@ -9,3 +9,4 @@ // Generated by CoffeeScript 1.10.0

function Nodes() {
this.nodes = [];
this.nodes = {};
this.id = 0;
}

@@ -20,3 +21,4 @@

}
return this.nodes.push(name);
this.id += 1;
return this.nodes[name] = this.id;
};

@@ -31,16 +33,12 @@

Nodes.prototype.getIdByName = function(name) {
return this.nodes.indexOf(name);
};
Nodes.prototype.size = function() {
return this.nodes.length;
return Object.keys(this.nodes).length;
};
Nodes.prototype.exists = function(name) {
return _.contains(this.nodes, name);
return this.nodes[name] != null;
};
Nodes.prototype.all = function() {
return this.nodes;
return Object.keys(this.nodes);
};

@@ -47,0 +45,0 @@

{
"name": "markov-cluster",
"version": "1.2.1",
"version": "1.2.2",
"description": "clustering graph network by Markov Cluster Algorithm(MCL)",

@@ -5,0 +5,0 @@ "main": "lib/mcl.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