getCnnctdNds {treeman} | R Documentation |
Return a vector of IDs of all nodes that are connected to tip IDs given.
getCnnctdNds(tree, tids)
tree |
|
tids |
vector of tip IDs |
Returns a vector. This function is the basis for calcPhyDv()
, it determines
the unique set of nodes connected for a set of tips.
getUnqNds
, calcFrPrp
,
calcPhyDv
library(treeman) tree <- randTree(10) cnntdnds <- getCnnctdNds(tree, c('t1', 't2'))