0.1.0 • Published 3 years ago
@api-client/graph v0.1.0
@api-client/graph
A set of libraries helping working with graphs.
Acknowledgment
This library is based on the dagrejs/graphlib library.
Usage
Installation
npm install --save @api-client/graph
Creating a graph
import { Graph } from '@api-client/graph';
const g = new Graph();
g.setGraph("graph label");
g.setNode("a", 123);
g.setPath(["a", "b", "c"]);
g.setEdge("a", "c", 456);
Development
git clone https://github.com/@api-client/graph
cd graph
npm install
Running the tests
npm test
License
0.1.0
3 years ago