directed-graph
node package for weighted directed graphs
Installation
npm install directed-graph --save
Quickstart
var Graph = ; // Either initialize and fill an empty graphvar graphA = ;graphA;graphA;graphA;graphA;graphA;graphA;graphA;graphA;graphA; // Or predefine a new graphvar graphB = 'A': 'B' 'C' 'B': 'A' 'C' 'C': 'A' 'B'; // Both graphA and graphB function the samegraphA;graphA;graphA;graphA;console;
Running Tests
Make sure to have mocha installed: npm install -g mocha
In project root directory, run: mocha test