npm.io
1.0.0 • Published 11 years ago

topo-sort

Licence
MIT
Version
1.0.0
Deps
0
Vulns
0
Weekly
0
Stars
5

Usage

Must not add any null, undefined or empty string node.

var TopoSort = require('topo-sort');

var tsort = new TopoSort();
tsort.add('a', ['b', 'c']);
tsort.add('d', ['a', 'b', 'c']);
// Output d,a,c,b
var l = tsort.sort();

Keywords