The generics ape::Nedge(), ape::Nnode(), and ape::Ntip() can be used directly on objects of class aphylo, aphylo_estimates, multiAphylo

Value

Integer with the number of edges, nodes, or tips accordignly.

See also

Other information: aphylo-info

Examples

set.seed(12312)
atree <- raphylo(50, P = 2)
Nnode(atree)
#> [1] 49
Ntip(atree)
#> [1] 50
Nedge(atree)
#> [1] 98

multitree <- rmultiAphylo(10, 50, P = 2)
Nnode(multitree)
#>  [1] 49 49 49 49 49 49 49 49 49 49
Ntip(multitree)
#>  [1] 50 50 50 50 50 50 50 50 50 50
Nedge(multitree)
#>  [1] 98 98 98 98 98 98 98 98 98 98