@ralfderijcke/graph
v1.0.9
Published
Basic graph data structure to store data
Downloads
4
Readme
Graph
Basic graph data structure to store data.
Installation
@ralfderijcke/graph is available as a package on npm.
npm install @ralfderijcke/graph --save
Getting Started
const graph = new Graph();
const object1 = {};
const vertex1 = new Vertex(object1);
const object2 = {};
const vertex2 = new Vertex(object2);
const edge1 = graph.addEdge(vertex1, vertex2);