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

Package Sidebar

Install

npm i topo-sort

Weekly Downloads

1,216

Version

1.0.0

License

MIT

Last publish

Collaborators

  • liy