Assertions for graphology.
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.travis.yml
LICENSE.txt
README.md
index.js
package.json
test.js

README.md

Build Status

Graphology Assertions

Assertions to be used with graphology.

Installation

npm install graphology-assertions

Usage

#.sameNodes

Returns whether two graphs have the same nodes.

import {sameNodes} from 'graphology-assertions';

sameNodes(G, H);

#.sameDeepNodes

Returns whether two graphs have the same nodes & whether those nodes have the same attributes.

import {sameDeepNodes} from 'graphology-assertions';

sameDeepNodes(G, H);