#pragma once // ----------------------------------------------------------------------- // Phylogenetics typedef struct bio·Node { string name; string comment; double dist; double support; int nchild; int ndescendent; struct bio·Node *parent; struct bio·Node *child[2]; struct bio·Node *sibling; } bio·Node; error phylo·addchild(bio·Node *parent, bio·Node* child); bool phylo·isleaf(bio·Node *node); typedef struct bio·Tree { bio·Node *root; } bio·Tree; bio·Tree bio·readnewick(Stream *file, mem·Allocator heap); error bio·writenewick(bio·Tree tree, Stream *out); // ----------------------------------------------------------------------- // Sequences