This package has been deprecated

Author message:

This package has been renamed to @graph-algorithm/topological-sorting.

@aureooms/js-topological-sorting

0.2.2 • Public • Published

🍢 @aureooms/js-topological-sorting

Topological sorting algorithms for JavaScript. See docs.

⚠️ The code requires regeneratorRuntime to be defined, for instance by importing regenerator-runtime/runtime.

// Sort anything that can be iterated over with `for (const [u, v] of ...)`
import {sorted} from '@aureooms/js-topological-sorting';
sorted(["ab", "bc"]); // abc

// Add a comparison function to break ties.
import {increasing} from '@aureooms/js-compare';
sorted(["ab", "cd"], increasing); // abcd

import {decreasing} from '@aureooms/js-compare';
sorted(["ab", "cd"], decreasing); // cdab

License Version Build Dependencies Dev dependencies GitHub issues Downloads

Code issues Code maintainability Code coverage (cov) Code technical debt Documentation Package size

Dependencies (2)

Dev Dependencies (29)

Package Sidebar

Install

npm i @aureooms/js-topological-sorting

Weekly Downloads

4

Version

0.2.2

License

AGPL-3.0

Unpacked Size

510 kB

Total Files

14

Last publish

Collaborators

  • aureooms