graphology-operators
Advanced tools
Comparing version 1.1.0 to 1.2.0
{ | ||
"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 @@ |
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
15351
17
281
154
5
+ Addedgraphology-types@0.17.0(transitive)
- Removedgraphology-types@0.16.0(transitive)
Updatedgraphology-types@^0.17.0