topo-sort

1.0.0 • Public • Published

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.04,229latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.04,229
0.5.13
0.5.01
0.4.13
0.4.01
0.3.00
0.2.02

Package Sidebar

Install

npm i topo-sort

Weekly Downloads

4,239

Version

1.0.0

License

MIT

Last publish

Collaborators

  • liy