isTreeBased: Determine whether a network is tree-based

View source: R/utils.R

isTreeBasedR Documentation

Determine whether a network is tree-based

Description

This function determines whether a network is tree-based

Usage

isTreeBased(net)

Arguments

net

A phylogenetic network of class evonet.

Details

A phylogenetic network is said to be tree-based if it can be constructed with a base tree that has additional linking arcs added. See jetten 2016 Corollary 2.11 for the algorithm used to determine whether the network is tree-based

Value

A logical that is TRUE if the network is tree-based

Examples

net<- read.net(text= "((A:7,((B:2,C:2):3)#H1:2::0.6):3,(D:6,#H1:1::0.4):4);")
isTreeBased(net) ##returns TRUE

jjustison/SiPhyNetwork documentation built on Sept. 14, 2024, 8:58 a.m.