Return the node ids of all tips that descend from each node in ids
.
Examples
tree <- randTree(10)
getNdsKids(tree, id = tree["nds"])
#> $n1
#> [1] "t1" "t2" "t3" "t4" "t5" "t6" "t7" "t8" "t9" "t10"
#>
#> $n2
#> [1] "t1" "t2" "t3" "t4" "t5" "t6" "t7" "t8" "t9"
#>
#> $n3
#> [1] "t1" "t2" "t3" "t4" "t5" "t7" "t8" "t9"
#>
#> $n4
#> [1] "t2" "t3" "t5" "t7" "t8" "t9"
#>
#> $n5
#> [1] "t2" "t5" "t8" "t9"
#>
#> $n6
#> [1] "t3" "t7"
#>
#> $n7
#> [1] "t2" "t5" "t9"
#>
#> $n8
#> [1] "t2" "t5"
#>
#> $n9
#> [1] "t1" "t4"
#>