igraph_to_phylo: Converts an igraph network into a phylogenetic tree as a...

View source: R/igraph_to_phylo.R

igraph_to_phyloR Documentation

Converts an igraph network into a phylogenetic tree as a phylo object.

Description

Converts an igraph network into a phylogenetic tree as a phylo object.

Usage

igraph_to_phylo(tree, solve_multichotomies)

Arguments

tree

igraph object

solve_multichotomies

boolean - whether to remove multichotomies in the resulting phylogenetic tree using ape::multi2di

Value

phylogenetic tree

Examples

phylo_object <- igraph_to_phylo(AntibodyForests::small_af[["S1"]][["clonotype1"]]$igraph)

AntibodyForests documentation built on Aug. 8, 2025, 6:49 p.m.