phylo2igraph {TreeAndLeaf} | R Documentation |
Function for converting a phylo object to an igraph.
phylo2igraph(phy)
phy |
A phylo object with labeled tips <phylo>. |
An igraph object.
phy <- ape::rtree(10, tip.label = c(1:10)) gg <- phylo2igraph(phy)