1.0.0 • Published 10 years ago

topo-sort v1.0.0

Weekly downloads
11,818
License
MIT
Repository
github
Last release
10 years ago

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();