The topologically sorted array of nodes.
If a cycle is present in the graph, the cycle will be ignored and the return value will be only approximately sorted.
import { topologicSort } from '@lumino/algorithm';
let data = [
['d', 'e'],
['c', 'd'],
['a', 'b'],
['b', 'c']
];
topologicSort(data); // ['a', 'b', 'c', 'd', 'e']
Topologically sort an iterable of edges.