2.0.0 • Published 4 months ago

dangraph v2.0.0

Weekly downloads
11
License
ISC
Repository
github
Last release
4 months ago

DanGraph

DanGraph is a library written in typescript to manipulate directed and undirected graphs

How to

Building a graph is as simple as invoking a class constructor and a couple of very simple methods.

Es:

import { DirectedGraph, CDanNode, CDanArc } from 'dangraph';
const myGraph = new DirectedGraph.DanDirectedGraph<number, undefined>();
myGraph.addArcToNode(
  new CDanNode({ id: 1 }),
  new CDanArc({ weight: 1, node: new CDanNode({ id: 2 }) }),
  DirectedGraph.ArcType.outgoing
);

Documentation

Code documentation

Read more about

Scripts

Build

npm run build

Test

npm run test

Build documentation

npm run build:doc

Breaking changes in all versions

Breaking changes

2.0.0

4 months ago

1.0.1

3 years ago

1.0.0

4 years ago

0.3.0

4 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.1.0

5 years ago