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

graphology-operators

Package Overview
Dependencies
Maintainers
0
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphology-operators - npm Package Compare versions

Comparing version 1.6.0 to 1.6.1

2

package.json
{
"name": "graphology-operators",
"version": "1.6.0",
"version": "1.6.1",
"description": "Miscellaneous operators for graphology.",

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

@@ -198,3 +198,2 @@ # Graphology Operators

### toUndirected

@@ -201,0 +200,0 @@

@@ -20,13 +20,13 @@ /**

// Importing undirected edges
graph.forEachUndirectedEdge(function (key, attr, source, target) {
copyEdge(reversed, true, key, source, target, attr);
graph.forEachEdge(function (key, attr, source, target, _sa, _ta, undirected) {
if (undirected) {
// Import undirected edge
copyEdge(reversed, true, key, source, target, attr);
} else {
// Reverse directed edge
copyEdge(reversed, false, key, target, source, attr);
}
});
// Reversing directed edges
graph.forEachDirectedEdge(function (key, attr, source, target) {
copyEdge(reversed, false, key, target, source, attr);
});
return reversed;
};
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