You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
nau 5fa880dd01 database externa 7 years ago
..
lib get token for user, post users, get all users, post thought, get all thoughts. runs ok 7 years ago
test get token for user, post users, get all users, post thought, get all thoughts. runs ok 7 years ago
.npmignore get token for user, post users, get all users, post thought, get all thoughts. runs ok 7 years ago
.travis.yml get token for user, post users, get all users, post thought, get all thoughts. runs ok 7 years ago
API.md get token for user, post users, get all users, post thought, get all thoughts. runs ok 7 years ago
CONTRIBUTING.md get token for user, post users, get all users, post thought, get all thoughts. runs ok 7 years ago
LICENSE get token for user, post users, get all users, post thought, get all thoughts. runs ok 7 years ago
README.md get token for user, post users, get all users, post thought, get all thoughts. runs ok 7 years ago
package.json database externa 7 years ago

README.md

topo

Topological sorting with grouping support.

Build Status

Lead Maintainer: Devin Ivy

Usage

See the API Reference

Example

var Topo = require('topo');

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