0.6.3 • Published 4 years ago
@dags/dag-local v0.6.3
Directed Acyclic Graph with local identification
Install
$ yarn add @dags/core
# or
$ npm install @dags/core
Usage
import { DagLocal } from '@dags/core'
const dag = new DagLocal()
const parent = dag.newNode()
const child = dag.newNode()
console.log(parent.equals(parent))
console.log(parent.equals(child))
dag.setParenthood(parent, child)