]> git.donarmstrong.com Git - mothur.git/blobdiff - treenode.h
chimeracode
[mothur.git] / treenode.h
index a83bbca615d6300e113e4fdf402e64934adb189c..c25806b7445cb90cc97ae45ab33d917a3981257e 100644 (file)
@@ -10,8 +10,6 @@
  *
  */
 
-using namespace std;
-
 #include "mothur.h"
 
 /* This class represents a node on a tree. */
@@ -23,15 +21,19 @@ class Node  {
                ~Node() { pGroups.clear(); pcount.clear(); };
                
                void setName(string);
-               void setGroup(string);  
+               void setGroup(vector<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();  
+               vector<string> getGroup();  
                float getBranchLength();
+               float getLengthToLeaves();
+               float getLabel();
                int getParent();
                int getLChild();
                int getRChild();
@@ -50,8 +52,8 @@ class Node  {
                        
        private:
                string                  name;
-               string                  group;
-               float                   branchLength;
+               vector<string>  group; 
+               float                   branchLength, length2leaf, label;
                int                             parent;
                int                             lchild;
                int                             rchild;