]> git.donarmstrong.com Git - mothur.git/blobdiff - treenode.cpp
fixed bug in read.tree
[mothur.git] / treenode.cpp
index 6cd99f9bbb7234e1276d6c292474ac692bb0eff4..ae7d0e4ec6731a78967a46004aed02e61ceaf984 100644 (file)
@@ -23,8 +23,7 @@ Node::Node() {
 /****************************************************************/
 void Node::setName(string Name) {  name = Name; }
 /****************************************************************/
-//non leaf nodes will belong to multiple groups, leaf nodes will only belong to one.
-void Node::setGroup(string groups)  { group.push_back(groups); }
+void Node::setGroup(string groups)  { group =groups; }
 /****************************************************************/
 void Node::setBranchLength(float l) { branchLength = l; }
 /****************************************************************/
@@ -36,7 +35,7 @@ void Node::setChildren(int lc, int rc) { lchild = lc; rchild = rc; }  //leftchild
 /****************************************************************/
 string Node::getName() { return name; }
 /****************************************************************/
-vector<string> Node::getGroup() { return group; }
+string Node::getGroup() { return group; }
 /****************************************************************/
 float Node::getBranchLength() { return branchLength; }
 /****************************************************************/
@@ -68,4 +67,4 @@ void Node::printNode(ostream& out) {
                exit(1);
        }               
 }
-/****************************************************************/     
\ No newline at end of file
+/****************************************************************/