Compute the topological order of a tree
topological_order(MTG, ascend = FALSE)
MTG | An MTG tree as from |
---|---|
ascend | Is the order computed from the base ( |
Nothing, update the values of the MTG in-place. The MTG is enriched with the topological order of each node
#> Warning: the condition has length > 1 and only the first element will be used#> Warning: the condition has length > 1 and only the first element will be used#> Warning: the condition has length > 1 and only the first element will be used#> Warning: the condition has length > 1 and only the first element will be used#> levelName topological_order #> 1 node_1 2 #> 2 °--node_2 2 #> 3 °--node_3 2 #> 4 °--node_4 2 #> 5 ¦--node_5 1 #> 6 °--node_6 2 #> 7 °--node_7 1