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 and may contain bugs and security issues.
Last updated 3 years ago by nargonath .
SEE LICENSE IN LICENSE.md · Repository · Bugs · Original npm · Tarball · package.json
$ npm install topo 
SYNC missed versions from official npm registry.

topo

Topological sorting with grouping support.

Build Status

License

This version of the package requires a commercial license. You may not use, copy, or distribute it without first acquiring a commercial license from Sideway Inc. Using this software without a license is a violation of US and international law. To obtain a license, please contact sales@sideway.com. The open source version of this package can be found here.

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 (8 years ago)
  • 2.1.1                                ...           v2-legacy (3 years ago)

13 Versions

  • 2.1.1 [deprecated]           ...           3 years ago
  • 3.0.3 [deprecated]           ...           8 years ago
  • 3.0.2 [deprecated]           ...           8 years ago
  • 3.0.1 [deprecated]           ...           8 years ago
  • 3.0.0 [deprecated]           ...           9 years ago
  • 2.0.2 [deprecated]           ...           10 years ago
  • 2.0.1 [deprecated]           ...           11 years ago
  • 2.0.0 [deprecated]           ...           11 years ago
  • 1.1.0 [deprecated]           ...           11 years ago
  • 1.0.3 [deprecated]           ...           11 years ago
  • 1.0.2 [deprecated]           ...           12 years ago
  • 1.0.1 [deprecated]           ...           12 years ago
  • 1.0.0 [deprecated]           ...           13 years ago
Downloads
Total 74
Today 0
This Week 8
This Month 22
Last Day 0
Last Week 2
Last Month 13
Dependencies (1)
Dev Dependencies (2)
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE