PierreBarrat / TreeTools.jl

Tools for handling rooted phylogenetic or genealogic trees with Julia.
https://pierrebarrat.github.io/TreeTools.jl/
MIT License
5 stars 1 forks source link

Add isinternal method #45

Closed PierreBarrat closed 11 months ago

PierreBarrat commented 11 months ago

isinternal is the opposite of isleaf.

tree = parse_newick_string("(A,B)R;")
isinternal(tree.root) # true
isinternal(tree["A"]) # false