# is.binary.tree

From ape v3.0-2
0th

Percentile

##### Test for Binary Tree

This function tests whether a phylogenetic tree is binary, i.e. whether every node (including the root node) has exactly two descendant nodes. In this case the number of edges in the tree equals 2 n - 2 where n is the number of taxa (tips) in the tree.

Keywords
logic
##### Usage
is.binary.tree(phy)
##### Value

is.binary.tree returns TRUE if tree is a fully binary phylogenetic tree, otherwise it returns FALSE.

read.tree, is.ultrametric, multi2di

##### Examples
data("hivtree.newick") # example tree in NH format
unlink("hivtree.phy") # delete the file "hivtree.phy"