View source: R/topological_sort.R
topological_sort | R Documentation |
Graph is a list
which for each node contains a vector of child nodes
in the returned list, parents appear before their children.
topological_sort(graph)
graph |
( |
Implementation of Kahn
algorithm with a modification to maintain the order of input elements.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.