PCMTreeListDescendants.Rd
A list of the descendants for each node in a tree
PCMTreeListDescendants(tree, tableAncestors = PCMTreeTableAncestors(tree))
tree | a phylo object |
---|---|
tableAncestors | an integer matrix resulting from a call to PCMTreeTableAncestors(tree). |
a list with unnamed elements in the order of nodes in the tree. Each element is an integer vector containing the descendant nodes (in increasing order) of the node identified by its index-number in the list.
This function has time and memory complexity O(M^2), where M is the number of nodes in the tree. It can take several minutes and gigabytes of memory on trees of more than 10000 tips.