English | 中文
Graphlib is a JavaScript library that provides data structures for undirected and directed multi-graphs along with algorithms that can be used with them.
To learn more see our Wiki.
There are 2 versions on NPM, but only the one in the DagreJs org is receiving updates right now.
graphlib.alg.topsort(g)
// [ '1', '2', '3', '4' ] or [ '1', '3', '2', '4' ]
Graphlib is licensed under the terms of the MIT License. See the LICENSE file for details.