Return node ids for connecting id
to root.
Examples
tree <- randTree(10)
# get all nodes to root
getNdPrids(tree, id = "t1")
#> [1] "n6" "n5" "n3" "n2" "n1"
Return node ids for connecting id
to root.
tree <- randTree(10)
# get all nodes to root
getNdPrids(tree, id = "t1")
#> [1] "n6" "n5" "n3" "n2" "n1"