topo

Topological sorting with grouping support

This module has moved and is now available at @hapi/topo. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
Last updated 7 years ago by hueniverse .
BSD-3-Clause · Repository · Bugs · Original npm
$ cnpm install topo 
SYNC missed versions from official npm registry.

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']

Current Tags

  • 3.0.3                                ...           latest (7 years ago)

3 Versions

  • 1.1.0 [deprecated]           ...           10 years ago
  • 2.0.2 [deprecated]           ...           9 years ago
  • 3.0.3 [deprecated]           ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org