Wrapper for internal C++ function for maximum efficiency. Improper input may crash R. Behaviour not guaranteed. It is advisable to contact the package maintainers before relying on this function.
edge_to_splits(
edge,
edgeOrder,
tipLabels = NULL,
asSplits = TRUE,
nTip = NTip(edge),
...
)
edge_to_splits()
uses the same return format as as.Splits()
.
A matrix with two columns, with each row listing the parent and
child node of an edge in a phylogenetic tree. Property edge
of objects
of class phylo
.
Integer vector such that edge[edgeOrder, ]
returns a
postorder ordering of edges.
Character vector specifying sequence in which to order
tip labels. Label order must (currently) match to combine or compare separate
Splits
objects.
Logical specifying whether to return a Splits
object,
or an unannotated two-dimensional array (useful where performance is
paramount).
Integer specifying number of leaves in tree.
Presently unused.
as.Splits()
offers a safe access point to this
function that should be suitable for most users.