1.0.0 • Published 2 years ago

@wizulus/graph v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Experimental async graph based on any key value store

Usage:

const { Graph } = require('@wizulus/graph')

const g = new Graph()
const v1 = g.addVertex({name: 'Tom Hanks'})
const v2 = g.addVertex({name: 'Forest Gump'})
const e = g.addEdge(v1, v2, 'actedIn')

const actors = g.v()
  .has({name: 'Forest Gump'})
  .in('actedIn')
  .toArray()
  .map(v => v.name)

More docs to come...