]> git.donarmstrong.com Git - mothur.git/blobdiff - treenode.cpp
started shared utilities, updates to venn and heatmap added tree.groups command
[mothur.git] / treenode.cpp
index cf7192e12e8c0d4e3b435b80e6cdefe8663f471c..59fb630ef11373b671f48dfc72459dbc1fa78ad7 100644 (file)
@@ -18,6 +18,7 @@ Node::Node() {
        parent = -1;
        lchild = -1;
        rchild = -1;
+       length2leaf = 0.0;
        
 }
 /****************************************************************/
@@ -27,6 +28,8 @@ void Node::setGroup(string groups)  { group =groups; }
 /****************************************************************/
 void Node::setBranchLength(float l) { branchLength = l; }
 /****************************************************************/
+void Node::setLengthToLeaves(float l) { length2leaf = l; }
+/****************************************************************/
 void Node::setParent(int p)  { parent = p; }
 /****************************************************************/
 void Node::setIndex(int i)  { vectorIndex = i; }
@@ -39,6 +42,8 @@ string Node::getGroup() { return group; }
 /****************************************************************/
 float Node::getBranchLength() { return branchLength; }
 /****************************************************************/
+float Node::getLengthToLeaves() { return length2leaf; }
+/****************************************************************/
 int Node::getParent() { return parent; }
 /****************************************************************/
 int Node::getLChild() { return lchild; }