ss-graph
Data Structure Serial - Graph
- written in Typescript
- fully tested
Installation
Node.js / Browserify
npm install ss-graph --save
var Graph GraphEdge GraphVertex = ;
Global object
Include the pre-built script.
usage
const graph = ; const vertexA = 'A';const vertexB = 'B';const vertexC = 'C';const vertexD = 'D'; const edgeAB = vertexA vertexB 1;const edgeBC = vertexB vertexC 2;const edgeCD = vertexC vertexD 3;const edgeAD = vertexA vertexD 4; graph ; ;
Build & test
npm run build
npm test
document
npm run doc
then open the generated out/index.html
file in your browser.
License
MIT.