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

graphology-metrics

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphology-metrics - npm Package Compare versions

Comparing version 1.16.0 to 1.16.1

12

centrality/betweenness.js

@@ -7,8 +7,8 @@ /**

*/
var isGraph = require('graphology-utils/is-graph'),
lib = require('graphology-shortest-path/indexed-brandes'),
defaults = require('lodash/defaults');
var isGraph = require('graphology-utils/is-graph');
var lib = require('graphology-shortest-path/indexed-brandes');
var resolveDefaults = require('graphology-utils/defaults');
var createUnweightedIndexedBrandes = lib.createUnweightedIndexedBrandes,
createDijkstraIndexedBrandes = lib.createDijkstraIndexedBrandes;
var createUnweightedIndexedBrandes = lib.createUnweightedIndexedBrandes;
var createDijkstraIndexedBrandes = lib.createDijkstraIndexedBrandes;

@@ -47,3 +47,3 @@ /**

// Solving options
options = defaults({}, options, DEFAULTS);
options = resolveDefaults(options, DEFAULTS);

@@ -50,0 +50,0 @@ var weightAttribute = options.attributes.weight;

@@ -7,3 +7,3 @@ /**

*/
var defaults = require('lodash/defaultsDeep');
var resolveDefaults = require('graphology-utils/defaults');
var isGraph = require('graphology-utils/is-graph');

@@ -80,3 +80,3 @@

options = defaults(options, DEFAULTS);
options = resolveDefaults(options, DEFAULTS);

@@ -83,0 +83,0 @@ // Variables

@@ -12,3 +12,3 @@ /**

var isGraph = require('graphology-utils/is-graph');
var defaults = require('lodash/defaults');
var resolveDefaults = require('graphology-utils/defaults');

@@ -55,3 +55,3 @@ /**

options = defaults(options, DEFAULTS);
options = resolveDefaults(options, DEFAULTS);

@@ -58,0 +58,0 @@ var pagerankAttribute = options.attributes.pagerank,

@@ -144,5 +144,5 @@ /**

*/
var defaults = require('lodash/defaultsDeep'),
isGraph = require('graphology-utils/is-graph'),
inferType = require('graphology-utils/infer-type');
var resolveDefaults = require('graphology-utils/defaults');
var isGraph = require('graphology-utils/is-graph');
var inferType = require('graphology-utils/infer-type');

@@ -547,3 +547,3 @@ var DEFAULTS = {

options = defaults({}, options || {}, DEFAULTS);
options = resolveDefaults(options, DEFAULTS);

@@ -578,3 +578,3 @@ if (trueType === 'directed') return directedDenseModularity(graph, options);

options = defaults({}, options || {}, DEFAULTS);
options = resolveDefaults(options, DEFAULTS);

@@ -581,0 +581,0 @@ if (trueType === 'directed') return directedSparseModularity(graph, options);

{
"name": "graphology-metrics",
"version": "1.16.0",
"version": "1.16.1",
"description": "Miscellaneous graph metrics for graphology.",

@@ -56,6 +56,5 @@ "main": "index.js",

"graphology-shortest-path": "^1.5.0",
"graphology-utils": "^2.1.2",
"lodash": "^4.17.21",
"graphology-utils": "^2.3.0",
"mnemonist": "^0.38.3"
}
}
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