]> git.donarmstrong.com Git - mothur.git/blobdiff - treenode.cpp
fixed concensus command and modified tree class so you can print labels on trees
[mothur.git] / treenode.cpp
index 59fb630ef11373b671f48dfc72459dbc1fa78ad7..fc6ea3a595ac752e943151a84ce6a538f6d66670 100644 (file)
@@ -19,6 +19,7 @@ Node::Node() {
        lchild = -1;
        rchild = -1;
        length2leaf = 0.0;
+       label = -1;
        
 }
 /****************************************************************/
@@ -28,6 +29,8 @@ void Node::setGroup(string groups)  { group =groups; }
 /****************************************************************/
 void Node::setBranchLength(float l) { branchLength = l; }
 /****************************************************************/
+void Node::setLabel(float l) { label = l; }
+/****************************************************************/
 void Node::setLengthToLeaves(float l) { length2leaf = l; }
 /****************************************************************/
 void Node::setParent(int p)  { parent = p; }
@@ -42,6 +45,8 @@ string Node::getGroup() { return group; }
 /****************************************************************/
 float Node::getBranchLength() { return branchLength; }
 /****************************************************************/
+float Node::getLabel() { return label; }
+/****************************************************************/
 float Node::getLengthToLeaves() { return length2leaf; }
 /****************************************************************/
 int Node::getParent() { return parent; }