phylo2igraph {TreeAndLeaf}R Documentation

Convert a phylo object to an igraph

Description

Function for converting a phylo object to an igraph.

Usage

phylo2igraph(phy)

Arguments

phy

A phylo object with labeled tips <phylo>.

Value

An igraph object.

Examples

phy <- ape::rtree(10, tip.label = c(1:10))
gg <- phylo2igraph(phy)


[Package TreeAndLeaf version 1.2.0 Index]