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

cytoscape

Package Overview
Dependencies
Maintainers
3
Versions
254
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cytoscape - npm Package Compare versions

Comparing version 3.5.4 to 3.5.5

22

.size-snapshot.json
{
"build/cytoscape.umd.js": {
"bundled": 899576,
"minified": 333090,
"gzipped": 103665
"bundled": 899681,
"minified": 333110,
"gzipped": 103674
},
"build/cytoscape.cjs.js": {
"bundled": 828806,
"minified": 350350,
"gzipped": 105715
"bundled": 828905,
"minified": 350370,
"gzipped": 105725
},
"build/cytoscape.esm.js": {
"bundled": 828633,
"minified": 350207,
"gzipped": 105680,
"bundled": 828732,
"minified": 350227,
"gzipped": 105690,
"treeshaked": {
"rollup": {
"code": 327786,
"code": 327806,
"import_statements": 51
},
"webpack": {
"code": 329653
"code": 329673
}

@@ -24,0 +24,0 @@ }

{
"name": "cytoscape",
"version": "3.5.4",
"version": "3.5.5",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "Graph theory (a.k.a. network) library for analysis and visualisation",

@@ -45,3 +45,3 @@ // Implemented by Zoe Xi @zoexi for GSOC 2016

let getDist = (n1, n2) => clusteringDistance( opts.distance, attrs.length, i => attrs[i](n1), i => attrs[i](n2) );
let getDist = (n1, n2) => clusteringDistance( opts.distance, attrs.length, i => attrs[i](n1), i => attrs[i](n2), n1, n2 );

@@ -245,3 +245,3 @@ for ( let i = 0; i < clusters.length; i++ ) {

let attrs = opts.attributes;
let getDist = (n1, n2) => clusteringDistance( opts.distance, attrs.length, i => attrs[i](n1), i => attrs[i](n2) );
let getDist = (n1, n2) => clusteringDistance( opts.distance, attrs.length, i => attrs[i](n1), i => attrs[i](n2), n1, n2 );

@@ -248,0 +248,0 @@ // Begin hierarchical algorithm

@@ -40,6 +40,9 @@ // Implemented by Zoe Xi @zoexi for GSOC 2016

let getDist = function(type, node, centroid, attributes, mode){
let getP = mode === 'kMedoids' ? ( i => attributes[i](centroid) ) : ( i => centroid[i] );
let noNodeP = mode !== 'kMedoids';
let getP = noNodeP ? ( i => centroid[i] ) : ( i => attributes[i](centroid) );
let getQ = i => attributes[i](node);
let nodeP = centroid;
let nodeQ = node;
return clusteringDistance( type, attributes.length, getP, getQ );
return clusteringDistance( type, attributes.length, getP, getQ, nodeP, nodeQ );
};

@@ -46,0 +49,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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