xflouris / libpll

Phylogenetic Likelihood Library
GNU Affero General Public License v3.0
26 stars 6 forks source link

Encapsulate rtree/utree into tree structures #126

Closed xflouris closed 7 years ago

xflouris commented 7 years ago

Current rtree/utree are in fact node structures. Rename them to rnode/unode and encapsulate them. Generic ntree is not necessary at this point of time.

Sample prototype for rooted tree:

typedef struct pll_rtree_s
{
  pll_rnode_t * root;
  pll_rnode_t ** nodes;
  unsigned long tip_count;
  unsigned long inner_count;
  unsigned long branch_count;
} pll_rtree_t;
xflouris commented 7 years ago

encapsulated utree, started work on rtree.

xflouris commented 7 years ago

finished