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

graphlib

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphlib - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

7

CHANGELOG.md

@@ -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 @@ ======

6

lib/compoundify.js

@@ -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",

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