]> git.donarmstrong.com Git - mothur.git/blobdiff - treenode.h
started shared utilities, updates to venn and heatmap added tree.groups command
[mothur.git] / treenode.h
index a83bbca615d6300e113e4fdf402e64934adb189c..58d967d5cf297bbcd82e3839822e201a0aed121f 100644 (file)
@@ -28,10 +28,12 @@ class Node  {
                void setParent(int);
                void setChildren(int, int);             //leftchild, rightchild
                void setIndex(int);
+               void setLengthToLeaves(float);
                
                string getName();
                string getGroup();  
                float getBranchLength();
+               float getLengthToLeaves();
                int getParent();
                int getLChild();
                int getRChild();
@@ -51,7 +53,7 @@ class Node  {
        private:
                string                  name;
                string                  group;
-               float                   branchLength;
+               float                   branchLength, length2leaf;
                int                             parent;
                int                             lchild;
                int                             rchild;