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 · Tarball · package.json
$ 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)
  • 2.1.1                                ...           v2-legacy (2 years ago)

13 Versions

  • 2.1.1 [deprecated]           ...           2 years ago
  • 3.0.3 [deprecated]           ...           7 years ago
  • 3.0.2 [deprecated]           ...           7 years ago
  • 3.0.1 [deprecated]           ...           7 years ago
  • 3.0.0 [deprecated]           ...           9 years ago
  • 2.0.2 [deprecated]           ...           10 years ago
  • 2.0.1 [deprecated]           ...           10 years ago
  • 2.0.0 [deprecated]           ...           10 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]           ...           12 years ago
Downloads
Today 0
This Week 0
This Month 12
Last Day 0
Last Week 12
Last Month 1
Dependencies (1)
Dev Dependencies (2)
Dependents (2)

Copyright 2013 - present © cnpmjs.org | Home |