0.4.1 • Published 1 year ago

jam-graph v0.4.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

jam-graph

Super-simple and super-light (~1Kb gzip) graph-data manager

Usage example

import { Cluster } from 'jam-graph';

// Create new graph cluster:
const myGraph = new Cluster();

// Add label handler 
myGraph.subscribeOnLabel('UNLABELED', (idList) => {
  console.log(idList);
  console.log(myGraph.getVtxList(idList));
});

// Add first vertex:
const id1 = myGraph.addValue({
  myDataField: 'EXAMPLE 1',
});

// Add second vertex:
const id2 = myGraph.addValue({
  myDataField: 'EXAMPLE 2',
});

// Create edge:
myGraph.linkDuplex(id1, id2);

Documentation will be updated and enhanced soon.

0.4.1

1 year ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.2

2 years ago

0.1.0

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago