powered by
NodeOrder() calculates the number of edges incident to each node in a tree. Includes the root edge in rooted trees.
NodeOrder()
NodeOrder(x, includeAncestor = TRUE, internalOnly = FALSE)
A tree of class phylo, its $edge property, or a list thereof.
phylo
$edge
Logical specifying whether to count edge leading to ancestral node in calculation of order.
Logical specifying whether to restrict to results to internal nodes, i.e. to omit leaves. Irrelevant if includeAncestor = FALSE.
includeAncestor = FALSE
NodeOrder() returns an integer listing the order of each node; entries are named with the number of each node.
Other tree navigation: AncestorEdge(), CladeSizes(), DescendantEdges(), EdgeAncestry(), EdgeDistances(), ListAncestors(), MRCA(), NDescendants(), NodeDepth(), NonDuplicateRoot(), RootNode()
AncestorEdge()
CladeSizes()
DescendantEdges()
EdgeAncestry()
EdgeDistances()
ListAncestors()
MRCA()
NDescendants()
NodeDepth()
NonDuplicateRoot()
RootNode()
# NOT RUN { tree <- CollapseNode(BalancedTree(8), 12:15) NodeOrder(tree) plot(tree) nodelabels(NodeOrder(tree, internalOnly = TRUE)) # }
Run the code above in your browser using DataLab