@trepo/vgraph

0.6.2 • Public • Published

trepo-vgraph

vGraph implementation on top of vagabond-db

You probably want trepo-core or trepo-server

const VGraph = require('trepo-vgraph');

const vGraph = new VGraph('my-repo');

await vGraph.init();

const node = await vGraph.addNode('label');
await node.setProperties({
  foo: 'bar',
});

const node2 = await vGraph.addNode('label2');
await vGraph.addEdge('edge_label', node, node2);

const commit = await vGraph.commit('author', 'email', 'message');

Package Sidebar

Install

npm i @trepo/vgraph

Weekly Downloads

0

Version

0.6.2

License

MIT

Last publish

Collaborators

  • jonnymbgood