New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eg-graph

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eg-graph - npm Package Compare versions

Comparing version

to
0.0.9

5

lib/graph/copy.js
'use strict';
var _toConsumableArray = require('babel-runtime/helpers/to-consumable-array')['default'];
var _slicedToArray = require('babel-runtime/helpers/sliced-to-array')['default'];

@@ -22,3 +24,4 @@

var copy = function copy(g) {
var newGraph = new _Graph2['default']();
var idOffset = Math.max.apply(Math, _toConsumableArray(g.vertices()));
var newGraph = new _Graph2['default'](idOffset);
var _iteratorNormalCompletion = true;

@@ -25,0 +28,0 @@ var _didIteratorError = false;

4

lib/graph/index.js

@@ -35,2 +35,4 @@ 'use strict';

function Graph() {
var idOffset = arguments[0] === undefined ? 0 : arguments[0];
_classCallCheck(this, Graph);

@@ -42,3 +44,3 @@

numEdges: 0,
idOffset: 0
idOffset: idOffset
});

@@ -45,0 +47,0 @@ }

{
"name": "eg-graph",
"version": "0.0.8",
"version": "0.0.9",
"description": "Graph drawig tool",

@@ -5,0 +5,0 @@ "main": "lib/index.js",