0.1.0 • Published 3 years ago

@api-client/graph v0.1.0

Weekly downloads
-
License
cc-by-4.0
Repository
github
Last release
3 years ago

@api-client/graph

A set of libraries helping working with graphs.

Published on NPM

Tests and publishing

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