# NOT RUN {
library('TreeTools', quietly = TRUE, warn.conflicts = FALSE)
NNIDist(BalancedTree(7), PectinateTree(7))
NNIDist(BalancedTree(7), as.phylo(0:2, 7))
NNIDist(as.phylo(0:2, 7), PectinateTree(7))
NNIDist(list(bal = BalancedTree(7), pec = PectinateTree(7)),
as.phylo(0:2, 7))
CompareAll(as.phylo(30:33, 8), NNIDist)
# }
Run the code above in your browser using DataLab