0.1.2 • Published 4 years ago

@dags/dag-global v0.1.2

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

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 { DagGlobal } from '@dags/core'

const dag = new DagGlobal()

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

console.log(parent.equals(parent))
console.log(parent.equals(child))

dag.setParenthood(parent, child)