Skip to contents

Return a vector of IDs of all nodes that are connected to tip IDs given.

Usage

getCnnctdNds(tree, tids)

Arguments

tree

TreeMan object

tids

vector of tip IDs

Details

Returns a vector. This function is the basis for calcPhyDv(), it determines the unique set of nodes connected for a set of tips.

Examples


tree <- randTree(10)
cnntdnds <- getCnnctdNds(tree, c("t1", "t2"))