Welcome to the DAGs
This is the core module of the dags monorepo.
Installing DAGs
To use DAG modules, all you need to do is install the @dags/core
package:
$ yarn add @dags/core
$ npm install @dags/core
Usage
At the moment, the library exposes such modules:
dag
dag-local
uid-local
uid-uuid
For example, you can use the dag
module like this:
import { Dag } from '@dags/core'
const dag = new Dag()
const parent = dag.newNode()
const child = dag.newNode()
console.log(parent.equals(parent))
console.log(parent.equals(child))
dag.setParenthood(parent, child)