graphology-shortest-path
Advanced tools
Comparing version 1.3.2 to 1.3.3
@@ -87,4 +87,9 @@ /** | ||
var getWeight = function(e) { | ||
return graph.getEdgeAttribute(e, weightAttribute); | ||
var getWeight = function(edge) { | ||
var weight = graph.getEdgeAttribute(edge, weightAttribute); | ||
if (typeof weight !== 'number' || isNaN(weight)) | ||
return 1; | ||
return weight; | ||
}; | ||
@@ -210,3 +215,8 @@ | ||
var getWeight = function(edge) { | ||
return graph.getEdgeAttribute(edge, weightAttribute); | ||
var weight = graph.getEdgeAttribute(edge, weightAttribute); | ||
if (typeof weight !== 'number' || isNaN(weight)) | ||
return 1; | ||
return weight; | ||
}; | ||
@@ -213,0 +223,0 @@ |
{ | ||
"name": "graphology-shortest-path", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"description": "Shortest path functions for graphology.", | ||
@@ -40,5 +40,5 @@ "main": "index.js", | ||
"@yomguithereal/eslint-config": "^4.0.0", | ||
"eslint": "^6.8.0", | ||
"graphology": "0.16.1", | ||
"mocha": "^7.1.0" | ||
"eslint": "^7.2.0", | ||
"graphology": "0.17.1", | ||
"mocha": "^8.0.1" | ||
}, | ||
@@ -55,8 +55,8 @@ "eslintConfig": { | ||
"dependencies": { | ||
"@yomguithereal/helpers": "^1.0.0", | ||
"graphology-indices": "^0.3.0", | ||
"@yomguithereal/helpers": "^1.0.1", | ||
"graphology-indices": "^0.8.0", | ||
"graphology-types": "^0.16.0", | ||
"graphology-utils": "^1.7.0", | ||
"mnemonist": "^0.33.1" | ||
"mnemonist": "^0.36.1" | ||
} | ||
} |
34494
842
+ Addedgraphology-indices@0.8.0(transitive)
+ Addedmnemonist@0.35.00.36.1(transitive)
- Removedgraphology-indices@0.3.0(transitive)
- Removedmnemonist@0.32.00.33.1(transitive)
Updatedgraphology-indices@^0.8.0
Updatedmnemonist@^0.36.1