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

graphology

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphology - npm Package Compare versions

Comparing version 0.24.1 to 0.25.0

dist/graphology.cjs.js.map

3

package.json
{
"name": "graphology",
"version": "0.24.1",
"version": "0.25.0",
"description": "A robust and multipurpose Graph object for JavaScript.",

@@ -20,2 +20,3 @@ "main": "dist/graphology.cjs.js",

"dist/*.ts",
"dist/*.map",
"specs"

@@ -22,0 +23,0 @@ ],

@@ -91,2 +91,27 @@ "use strict";

});
},
'it should not need to tell whether edges are undirected if the graph is.': function itShouldNotNeedToTellWhetherEdgesAreUndirectedIfTheGraphIs() {
var graph = new Graph({
type: 'undirected'
});
graph.mergeEdgeWithKey(0, 1, 2);
_assert["default"].deepStrictEqual(graph["export"](), {
options: {
type: 'undirected',
multi: false,
allowSelfLoops: true
},
attributes: {},
nodes: [{
key: '1'
}, {
key: '2'
}],
edges: [{
key: '0',
source: '1',
target: '2'
}]
});
}

@@ -93,0 +118,0 @@ },

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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