0.2.2 • Published 4 years ago

@dags/dag-base v0.2.2

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

DAGs

A library that implements a Directed Acyclic Graph and some related functionality.

Installing

To use DAG modules, all you need to do is install the @dags/core package:

$ yarn add @dags/core

# or

$ npm install @dags/core

Usage

At the moment, the library provides the following modules:

  • dag-global
  • dag-local
  • uid-local
  • uid-uuid

For example, you can use the dag-global module in semi-procedural style like this:

import { DagGlobal } from '@dags/core'

const dag = new DagGlobal()

const parent = dag.newNode()
const child = dag.newNode()
dag.setParenthood(parent, child)

License

MIT © Alexander Lapygin