## This file is part of the R-package `ape'.
## See the file ../COPYING for licensing issues.
is.ultrametric <- function(phy, tol = .Machine$double.eps^0.5)
{
## This file is part of the R-package `ape'.
## See the file ../COPYING for licensing issues.
is.ultrametric <- function(phy, tol = .Machine$double.eps^0.5)
{
stop('object "phy" is not of class "phylo".')
if (is.null(phy$edge.length))
stop("the tree has no branch lengths.")
stop('object "phy" is not of class "phylo".')
if (is.null(phy$edge.length))
stop("the tree has no branch lengths.")