Directed Acyclic Graph with global identification
This is the core module of the dags monorepo.
Install
$ yarn add @dags/core
# or
$ npm install @dags/core
Usage
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)