rank.nodes {phybase}R Documentation

Node ranks (internal use only)

Description

The function returns the rank of each node in the tree.

Usage

rank.nodes(treenode, inode, ntaxa, start, rank)

Arguments

treenode tree node matrix
inode the tree root
ntaxa the number of taxa in the tree
start the maximum rank
rank a dummy vector

Value

The function returns a vector of ranks for the nodes in the tree.

Author(s)

Liang Liu lliu@oeb.harvard.edu

See Also

mrca.2nodes, mrca.nodes


[Package phybase version 1.1 Index]