-## as.phylo.R (2010-11-30)
+## as.phylo.R (2010-12-14)
## Conversion Among Tree Objects
{
if (!is.ultrametric(x)) stop("the tree is not ultrametric")
if (!is.binary.tree(x)) stop("the tree is not binary")
+ if (!is.rooted(x)) stop("the tree is not rooted")
n <- length(x$tip.label)
bt <- sort(branching.times(x))
inode <- as.numeric(names(bt))