Observed since 20 Oct, 21:53 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Topological sort of directed acyclic graphs (like dependency lists)
Sort directed acyclic graphs
npm install toposort or component install marcelklehr/toposort
then in your code:
toposort = require('toposort')
We want to sort the following graph.
// First, we define our edges.
var graph = [
['put on your shoes', 'tie your shoes']
, ['put on your shirt', 'put on your jacket']
, ['put on your shorts', 'put on your jacket']
, ['put on your shorts', 'put on your shoes']
]
// Now, sort the vertices topologically, to reveal a legal execution order.
toposort(graph)
// [ 'put on your shirt'
// , 'put on your shorts'
// , 'put on your jacket'
// , 'put on your shoes'
// , 'tie your shoes' ]
(Note that there is no defined order for graph parts that are not connected -- you could also put on your jacket after having tied your shoes...)
It is usually more convenient to specify dependencies instead of "sequences".
// This time, edges represent dependencies.
var graph = [
['tie your shoes', 'put on your shoes']
, ['put on your jacket', 'put on your shirt']
, ['put on your shoes', 'put on your shorts']
, ['put on your jacket', 'put on your shorts']
]
toposort(graph)
// [ 'tie your shoes'
// , 'put on your shoes'
// , 'put on your jacket'
// , 'put on your shirt'
// , 'put on your shorts' ]
// Now, reversing the list will reveal a legal execution order.
toposort(graph).reverse()
// [ 'put on your shorts'
// , 'put on your shirt'
// , 'put on your jacket'
// , 'put on your shoes'
// , 'tie your shoes' ]
[node1, node2] (vertices needn't be strings but can be of any type).Returns: {Array} a list of vertices, sorted from "start" to "end"
Throws an error if there are any cycles in the graph.
nodes here.This is a convenience method that allows you to define nodes that may or may not be connected to any other nodes. The ordering of unconnected nodes is not defined.
Returns: {Array} a list of vertices, sorted from "start" to "end"
Throws an error if there are any cycles in the graph.
Run the tests with node test.js.
MIT License
npm · 90 observations shown. Missing days are unknown.
| Date / source period | Value | Observed at |
|---|---|---|
| 2026-10-23 – 2026-10-23 | 0 | 2026-10-24T08:48:55.5962102Z |
| 2026-10-22 – 2026-10-22 | 9 | 2026-10-24T08:48:55.5962102Z |
| 2026-10-21 – 2026-10-21 | 0 | 2026-10-24T08:48:55.5962102Z |
| 2026-10-20 – 2026-10-20 | 0 | 2026-10-24T08:48:55.5962102Z |
| 2026-10-19 – 2026-10-19 | 0 | 2026-10-24T08:48:55.5962102Z |
| 2026-10-18 – 2026-10-18 | 2 | 2026-10-24T08:48:55.5962102Z |
| 2026-10-17 – 2026-10-17 | 2 | 2026-10-24T08:48:55.5962102Z |
| 2026-10-16 – 2026-10-16 | 4 | 2026-10-24T08:48:55.5962102Z |
| 2026-10-15 – 2026-10-15 | 0 | 2026-10-24T08:48:55.5962102Z |
| 2026-10-14 – 2026-10-14 | 0 | 2026-10-24T08:48:55.5962102Z |
| 2026-10-13 – 2026-10-13 | 0 | 2026-10-24T08:48:55.5962102Z |
| 2026-10-12 – 2026-10-12 | 2 | 2026-10-24T08:48:55.5962102Z |
| 2026-10-11 – 2026-10-11 | 1 | 2026-10-24T08:48:55.5962102Z |
| 2026-10-10 – 2026-10-10 | 2 | 2026-10-24T08:48:55.5962102Z |
| 2026-10-09 – 2026-10-09 | 11 | 2026-10-24T08:48:55.5962102Z |
| 2026-10-08 – 2026-10-08 | 0 | 2026-10-24T08:48:55.5962102Z |
| 2026-10-07 – 2026-10-07 | 0 | 2026-10-24T08:48:55.5962102Z |
| 2026-10-06 – 2026-10-06 | 0 | 2026-10-24T08:48:55.5962102Z |
| 2026-10-05 – 2026-10-05 | 3 | 2026-10-24T08:48:55.5962102Z |
| 2026-10-04 – 2026-10-04 | 3 | 2026-10-24T08:48:55.5962102Z |
| 2026-10-03 – 2026-10-03 | 1 | 2026-10-24T08:48:55.5962102Z |
| 2026-10-02 – 2026-10-02 | 1 | 2026-10-24T08:48:55.5962102Z |
| 2026-10-01 – 2026-10-01 | 14 | 2026-10-24T08:48:55.5962102Z |
| 2026-09-30 – 2026-09-30 | 24 | 2026-10-24T08:48:55.5962102Z |
| 2026-09-29 – 2026-09-29 | 29 | 2026-10-24T08:48:55.5962102Z |
| 2026-09-28 – 2026-09-28 | 8 | 2026-10-24T08:48:55.5962102Z |
| 2026-09-27 – 2026-09-27 | 4 | 2026-10-24T08:48:55.5962102Z |
| 2026-09-26 – 2026-09-26 | 2 | 2026-10-24T08:48:55.5962102Z |
| 2026-09-25 – 2026-09-25 | 3 | 2026-10-24T08:48:55.5962102Z |
| 2026-09-24 – 2026-09-24 | 6 | 2026-10-24T08:48:55.5962102Z |
| 2026-09-23 – 2026-09-23 | 3 | 2026-10-24T08:48:55.5962102Z |
| 2026-09-22 – 2026-09-22 | 1 | 2026-10-24T08:48:55.5962102Z |
| 2026-09-21 – 2026-09-21 | 0 | 2026-10-24T08:48:55.5962102Z |
| 2026-09-20 – 2026-09-20 | 6 | 2026-10-24T08:48:55.5962102Z |
| 2026-09-19 – 2026-09-19 | 4 | 2026-10-24T08:48:55.5962102Z |
| 2026-09-18 – 2026-09-18 | 0 | 2026-10-24T08:48:55.5962102Z |
| 2026-09-17 – 2026-09-17 | 38 | 2026-10-24T08:48:55.5962102Z |
| 2026-09-16 – 2026-09-16 | 4 | 2026-10-24T08:48:55.5962102Z |
| 2026-09-15 – 2026-09-15 | 0 | 2026-10-24T08:48:55.5962102Z |
| 2026-09-14 – 2026-09-14 | 4 | 2026-10-24T08:48:55.5962102Z |
| 2026-09-13 – 2026-09-13 | 0 | 2026-10-24T08:48:55.5962102Z |
| 2026-09-12 – 2026-09-12 | 4 | 2026-10-24T08:48:55.5962102Z |
| 2026-09-11 – 2026-09-11 | 0 | 2026-10-24T08:48:55.5962102Z |
| 2026-09-10 – 2026-09-10 | 1 | 2026-10-24T08:48:55.5962102Z |
| 2026-09-09 – 2026-09-09 | 0 | 2026-10-24T08:48:55.5962102Z |
| 2026-09-08 – 2026-09-08 | 0 | 2026-10-24T08:48:55.5962102Z |
| 2026-09-07 – 2026-09-07 | 0 | 2026-10-24T08:48:55.5962102Z |
| 2026-09-06 – 2026-09-06 | 0 | 2026-10-24T08:48:55.5962102Z |
| 2026-09-05 – 2026-09-05 | 4 | 2026-10-24T08:48:55.5962102Z |
| 2026-09-04 – 2026-09-04 | 13 | 2026-10-24T08:48:55.5962102Z |
| 2026-09-03 – 2026-09-03 | 0 | 2026-10-24T08:48:55.5962102Z |
| 2026-09-02 – 2026-09-02 | 2 | 2026-10-24T08:48:55.5962102Z |
| 2026-09-01 – 2026-09-01 | 3 | 2026-10-24T08:48:55.5962102Z |
| 2026-08-31 – 2026-08-31 | 0 | 2026-10-24T08:48:55.5962102Z |
| 2026-08-30 – 2026-08-30 | 8 | 2026-10-24T08:48:55.5962102Z |
| 2026-08-29 – 2026-08-29 | 0 | 2026-10-24T08:48:55.5962102Z |
| 2026-08-28 – 2026-08-28 | 3 | 2026-10-24T08:48:55.5962102Z |
| 2026-08-27 – 2026-08-27 | 9 | 2026-10-24T08:48:55.5962102Z |
| 2026-08-26 – 2026-08-26 | 1 | 2026-10-24T08:48:55.5962102Z |
| 2026-08-25 – 2026-08-25 | 0 | 2026-10-24T08:48:55.5962102Z |
| 2026-08-24 – 2026-08-24 | 1 | 2026-10-24T08:48:55.5962102Z |
| 2026-08-23 – 2026-08-23 | 0 | 2026-10-24T08:48:55.5962102Z |
| 2026-08-22 – 2026-08-22 | 0 | 2026-10-24T08:48:55.5962102Z |
| 2026-08-21 – 2026-08-21 | 3 | 2026-10-24T08:48:55.5962102Z |
| 2026-08-20 – 2026-08-20 | 0 | 2026-10-24T08:48:55.5962102Z |
| 2026-08-19 – 2026-08-19 | 3 | 2026-10-24T08:48:55.5962102Z |
| 2026-08-18 – 2026-08-18 | 0 | 2026-10-24T08:48:55.5962102Z |
| 2026-08-17 – 2026-08-17 | 1 | 2026-10-24T08:48:55.5962102Z |
| 2026-08-16 – 2026-08-16 | 0 | 2026-10-24T08:48:55.5962102Z |
| 2026-08-15 – 2026-08-15 | 17 | 2026-10-24T08:48:55.5962102Z |
| 2026-08-14 – 2026-08-14 | 0 | 2026-10-24T08:48:55.5962102Z |
| 2026-08-13 – 2026-08-13 | 0 | 2026-10-24T08:48:55.5962102Z |
| 2026-08-12 – 2026-08-12 | 9 | 2026-10-24T08:48:55.5962102Z |
| 2026-08-11 – 2026-08-11 | 0 | 2026-10-24T08:48:55.5962102Z |
| 2026-08-10 – 2026-08-10 | 6 | 2026-10-24T08:48:55.5962102Z |
| 2026-08-09 – 2026-08-09 | 0 | 2026-10-24T08:48:55.5962102Z |
| 2026-08-08 – 2026-08-08 | 0 | 2026-10-24T08:48:55.5962102Z |
| 2026-08-07 – 2026-08-07 | 2 | 2026-10-24T08:48:55.5962102Z |
| 2026-08-06 – 2026-08-06 | 2 | 2026-10-24T08:48:55.5962102Z |
| 2026-08-05 – 2026-08-05 | 1 | 2026-10-24T08:48:55.5962102Z |
| 2026-08-04 – 2026-08-04 | 8 | 2026-10-24T08:48:55.5962102Z |
| 2026-08-03 – 2026-08-03 | 0 | 2026-10-24T08:48:55.5962102Z |
| 2026-08-02 – 2026-08-02 | 4 | 2026-10-24T08:48:55.5962102Z |
| 2026-08-01 – 2026-08-01 | 1 | 2026-10-24T08:48:55.5962102Z |
| 2026-07-31 – 2026-07-31 | 0 | 2026-10-24T08:48:55.5962102Z |
| 2026-07-30 – 2026-07-30 | 0 | 2026-10-24T08:48:55.5962102Z |
| 2026-07-29 – 2026-07-29 | 3 | 2026-10-24T08:48:55.5962102Z |
| 2026-07-28 – 2026-07-28 | 4 | 2026-10-24T08:48:55.5962102Z |
| 2026-07-27 – 2026-07-27 | 0 | 2026-10-24T08:48:55.5962102Z |
| 2026-07-26 – 2026-07-26 | 4 | 2026-10-24T08:48:55.5962102Z |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 21:53 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:bff715928602a91d8347e2d5076bd4c8c8c41219528033f6e4710ce03de63b31