powered by
Graph is a list which for each node contains a vector of child nodes in the returned list, parents appear before their children.
list
topological_sort(graph)
(named list) with node vector elements
named list
Implementation of Kahn algorithm with a modification to maintain the order of input elements.
Kahn