graphology
Advanced tools
Comparing version 0.24.1 to 0.25.0
{ | ||
"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
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
2230467
28
20516