isTreeChild {SiPhyNetwork} | R Documentation |
Determine whether a network is tree-child
Description
This function determines whether a network is tree-child
Usage
isTreeChild(net)
Arguments
net |
A phylogenetic network of class |
Details
A phylogenetic network is said to be tree-child if all internal nodes have at least one tree-like or leaf node as children.
Value
A logical that is TRUE
if the network is tree-child
Examples
net<- read.net(text= "((A:7,((B:2,C:2):3)#H1:2::0.6):3,(D:6,#H1:1::0.4):4);")
isTreeChild(net) ##returns TRUE
[Package SiPhyNetwork version 1.1.0 Index]