Comparing version 0.5.1 to 0.5.2
@@ -0,1 +1,8 @@ | ||
v0.5.2 | ||
====== | ||
* Fixed bug where addNode would use `{}` as the default value if a initial | ||
value was not assigned. | ||
* Fixed bug where auto-assiged id was not used correcty in compound graphs. | ||
v0.5.1 | ||
@@ -2,0 +9,0 @@ ====== |
@@ -52,9 +52,7 @@ // This file provides a helper function that mixes-in Dot behavior to an | ||
Constructor.prototype.addNode = function(u, value) { | ||
if (arguments.length < 2) { | ||
value = {}; | ||
} | ||
u = SuperConstructor.prototype.addNode.call(this, u, value); | ||
this._parents[u] = null; | ||
this._children[u] = new Set(); | ||
this._children[null].add(u); | ||
return SuperConstructor.prototype.addNode.call(this, u, value); | ||
return u; | ||
}; | ||
@@ -61,0 +59,0 @@ |
@@ -1,11 +0,1 @@ | ||
// Returns `true` only if `f(x)` is `true` for all `x` in **xs**. Otherwise | ||
// returns `false`. This function will return immediately if it finds a | ||
// case where `f(x)` does not hold. | ||
exports.all = function(xs, f) { | ||
for (var i = 0; i < xs.length; ++i) { | ||
if (!f(xs[i])) return false; | ||
} | ||
return true; | ||
}; | ||
// Returns an array of all values for properties of **o**. | ||
@@ -12,0 +2,0 @@ exports.values = function(o) { |
@@ -1,1 +0,1 @@ | ||
module.exports = '0.5.1'; | ||
module.exports = '0.5.2'; |
{ | ||
"name": "graphlib", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "A directed and undirected multi-graph library", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
54405
1385