*
*/
-using namespace std;
-
#include "mothur.h"
/* This class represents a node on a tree. */
void setName(string);
void setGroup(string);
void setBranchLength(float);
+ void setLabel(float);
void setParent(int);
void setChildren(int, int); //leftchild, rightchild
void setIndex(int);
+ void setLengthToLeaves(float);
string getName();
string getGroup();
float getBranchLength();
+ float getLengthToLeaves();
+ float getLabel();
int getParent();
int getLChild();
int getRChild();
private:
string name;
string group;
- float branchLength;
+ float branchLength, length2leaf, label;
int parent;
int lchild;
int rchild;