From 9fd30c9e0ec9c5716b8cb7b8896318178d4b08bd Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Tue, 28 Apr 2020 14:41:33 -0700 Subject: fix: ladderize now sorts by number of nodes contained below --- include/libbio.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/libbio.h b/include/libbio.h index 261c732..9ce96b5 100644 --- a/include/libbio.h +++ b/include/libbio.h @@ -9,8 +9,8 @@ typedef struct bio·Node string comment; double dist; double support; + int nnode; int nchild; - int ndescendent; struct bio·Node *parent; struct bio·Node *sibling; struct bio·Node *child; @@ -25,10 +25,13 @@ typedef struct bio·Tree // clade functions error phylo·addchild(bio·Node* parent, bio·Node* child); +error phylo·rmchild(bio·Node* parent, bio·Node* child); error phylo·countnodes(bio·Node *node, int *n); error phylo·countleafs(bio·Node *node, int *n); +error phylo·ladderize(bio·Node *root); + /* newick i/o */ error bio·readnewick(io·Peeker stream, void*, mem·Allocator heap, void*, bio·Tree* tree); error bio·writenewick(bio·Tree tree, io·Putter out, void*); -- cgit v1.2.1