TreeIsRooted()
is a fast alternative to ape::is.rooted()
.
See also
Other tree properties:
ConsensusWithout()
,
MatchEdges()
,
NSplits()
,
NTip()
,
NodeNumbers()
,
PathLengths()
,
SplitsInBinaryTree()
,
TipLabels()
Examples
TreeIsRooted(BalancedTree(6))
#> [1] TRUE
TreeIsRooted(UnrootTree(BalancedTree(6)))
#> [1] FALSE