+\usage{
+as.phylo(x, ...)
+\method{as.phylo}{hclust}(x, ...)
+\method{as.phylo}{phylog}(x, ...)
+\method{as.hclust}{phylo}(x, ...)
+old2new.phylo(phy)
+new2old.phylo(phy)
+\method{as.network}{phylo}(x, directed = is.rooted(x), ...)
+as.igraph(x, ...)
+\method{as.igraph}{phylo}(x, directed = is.rooted(x), use.labels = TRUE, ...)
+}
+\arguments{
+ \item{x}{an object to be converted into another class.}
+ \item{directed}{a logical value: should the network be directed? By
+ default, this depends on whether the tree is rooted or not.}
+ \item{use.labels}{a logical specifying whether to use labels to build
+ the network of class \code{"igraph"}. If \code{TRUE} and the tree
+ has no node labels, then some default labels are created first. If
+ \code{FALSE}, the network is built with integers.}
+ \item{\dots}{further arguments to be passed to or from other methods.}
+ \item{phy}{an object of class \code{"phylo"}.}
+}