This repository has been archived on 2023-11-14. You can view files and clone it, but cannot push or open issues/pull-requests.
portapy/Download-Latest-Python/node_modules/topo
BrOakes 0e9e72efc1 python downloader 2018-10-30 18:09:58 -04:00
..
lib python downloader 2018-10-30 18:09:58 -04:00
LICENSE python downloader 2018-10-30 18:09:58 -04:00
README.md python downloader 2018-10-30 18:09:58 -04:00
package.json python downloader 2018-10-30 18:09:58 -04:00

README.md

topo

Topological sorting with grouping support.

Build Status

Lead Maintainer: Devin Ivy

Usage

See the API Reference

Example

const Topo = require('topo');

const morning = new Topo();

morning.add('Nap', { after: ['breakfast', 'prep'] });

morning.add([
    'Make toast',
    'Pour juice'
], { before: 'breakfast', group: 'prep' });

morning.add('Eat breakfast', { group: 'breakfast' });

morning.nodes;        // ['Make toast', 'Pour juice', 'Eat breakfast', 'Nap']