@api-modeling/graphlib
TypeScript icon, indicating that this package has built-in type declarations

3.0.4 • Public • Published

Graphlib

Graphlib is a JavaScript library that provides data structures for undirected and directed multi-graphs along with algorithms that can be used with them.

To learn more see our Wiki.

Published on NPM

Tests and publishing

Acknowledgment

This is a port of the dagrejs/graphlib library that is built for ESM and with types support. This library has no significant changes to the logic of the library.

MuleSoft nor Salesforce is not association with the original authors of the library and does not provide support for it.

Usage

Installation

npm install --save @api-modeling/graphlib

Creating a graph

import { Graph } from '@api-modeling/graphlib';

const g = new Graph();
g.setGraph("graph label");
g.setNode("a", 123);
g.setPath(["a", "b", "c"]);
g.setEdge("a", "c", 456);

License

Graphlib is licensed under the terms of the MIT License. See the LICENSE file for details.

Readme

Keywords

Package Sidebar

Install

npm i @api-modeling/graphlib

Weekly Downloads

6

Version

3.0.4

License

MIT

Unpacked Size

88.8 kB

Total Files

45

Last publish

Collaborators

  • jarrodek