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

ngraph.coarsen

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngraph.coarsen - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

6

lib/getSubgraphs.js

@@ -16,3 +16,7 @@ var getSubgraph = require('ngraph.subgraph');

coarseGraph.forEachNode(function(node) {
graphs.push(getSubgraph(node.data, srcGraph));
var subgraph = getSubgraph(node.data, srcGraph);
graphs.push({
id: node.id,
graph: subgraph
});
});

@@ -19,0 +23,0 @@

2

package.json
{
"name": "ngraph.coarsen",
"version": "1.3.0",
"version": "1.4.0",
"description": "Given a community structure creates a coarse graph",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -171,4 +171,9 @@ var coarsen = require('../');

t.equals(allGraphs.length, 2, 'Two communities - two graphs');
allGraphs.forEach(function(record) {
var node = coarseGraph.getNode(record.id);
t.ok(node, 'Coarse node id is valid');
t.equals(node.data.size, record.graph.getNodesCount(), 'Number of nodes in subgraph is valid');
});
t.end();
});
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