7ffce0e9718d585fa11cddf6ae4fa2be764e6795 angie Fri Jul 24 17:19:51 2020 -0700 Added phyloCountInternalNodes. Allow Newick format tree node names to begin with '_'. refs #25943 diff --git src/inc/phyloTree.h src/inc/phyloTree.h index 70ad89a..e7c2aa1 100644 --- src/inc/phyloTree.h +++ src/inc/phyloTree.h @@ -62,16 +62,19 @@ extern void phyloClearTreeMarks(struct phyloTree *tree); /* clear the favorite child marks */ extern struct phyloTree *phyloFindMarkUpTree(struct phyloTree *tree); /* find a marked node somewhere above this node */ extern void phyloMarkUpTree(struct phyloTree *tree); /* mark all the nodes from this one up to the top of the tree */ extern void phyloPrintTreeNoDups( struct phyloTree *tree,FILE *f); /* print out phylogenetic tree in Newick format (only speciation nodes) */ extern int phyloCountLeaves( struct phyloTree *tree); +int phyloCountInternalNodes(struct phyloTree *tree); +/* Return the number of internal nodes (not leaf nodes) in tree. */ + #endif