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

graphology-operators

Package Overview
Dependencies
Maintainers
1
Versions
14
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.1.0 to 1.2.0

disjoint-union.d.ts

12

package.json
{
"name": "graphology-operators",
"version": "1.1.0",
"version": "1.2.0",
"description": "Miscellaneous operators for graphology.",

@@ -8,2 +8,3 @@ "main": "index.js",

"*.d.ts",
"disjoint-union.js",
"index.js",

@@ -42,5 +43,6 @@ "reverse.js",

"@yomguithereal/eslint-config": "^4.0.0",
"eslint": "^6.8.0",
"graphology": "^0.16.1",
"mocha": "^7.1.1"
"eslint": "^7.10.0",
"graphology": "^0.17.1",
"mnemonist": "^0.38.0",
"mocha": "^8.1.3"
},

@@ -51,5 +53,5 @@ "eslintConfig": {

"dependencies": {
"graphology-types": "^0.16.0",
"graphology-types": "^0.17.0",
"graphology-utils": "^1.7.0"
}
}

@@ -21,2 +21,3 @@ [![Build Status](https://travis-ci.org/graphology/graphology-operators.svg)](https://travis-ci.org/graphology/graphology-operators)

* [disjointUnion](#disjointunion)
* [union](#union)

@@ -46,2 +47,20 @@

### disjointUnion
Returns the disjoin union of the given graphs. To do so, the function will
relabel your nodes & edges so both graphs can remain disjoint.
```js
import {disjointUnion} from 'graphology-operators';
// Alternatively, to load only the relevant code:
import disjointUnion from 'graphology-operators/disjoint-union';
const R = disjointUnion(G, H);
```
*Arguments*
* **G** *Graph*: first graph.
* **H** *Graph*: second graph.
### union

@@ -48,0 +67,0 @@

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