graphology-metrics
Advanced tools
Comparing version 1.16.0 to 1.16.1
@@ -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" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
84366
4
+ Addedgraphology-types@0.24.8(transitive)
- Removedlodash@^4.17.21
- Removedgraphology-types@0.24.7(transitive)
- Removedlodash@4.17.21(transitive)
Updatedgraphology-utils@^2.3.0