R: Get all nodes connected by given tips

getCnnctdNds {treeman} | R Documentation

## Get all nodes connected by given tips

### Description

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.

### See Also

`getUnqNds`, `calcFrPrp`, `calcPhyDv`

### Examples

    library(treeman)
    tree <- randTree(10)
    cnntdnds <- getCnnctdNds(tree, c('t1', 't2'))

[Package treeman version 1.1.4 Index]