X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=tree.cpp;h=eea3af4dea1f5db04cb689b052fb0177ef03e7f3;hp=d332f4771ba0b3f890b407b8f5a0ca31834b46ad;hb=9099173ea17b13be96563c7579ecc8dc2ef65d20;hpb=20f5abcedb60b8f2acabf98b887d4d778571a297 diff --git a/tree.cpp b/tree.cpp index d332f47..eea3af4 100644 --- a/tree.cpp +++ b/tree.cpp @@ -493,7 +493,7 @@ void Tree::printBranch(int node) { printBranch(tree[node].getRChild()); out << ")"; }else { //you are a leaf - tree[node].printNode(out); //prints out name and branch length + tree[node].printNode(); //prints out name and branch length } } @@ -508,6 +508,7 @@ void Tree::printBranch(int node) { } /*****************************************************************/ + void Tree::setGroups() { try { //if the user has not entered specific groups to analyze then do them all @@ -546,3 +547,17 @@ void Tree::setGroups() { } +/*****************************************************************/ + +void Tree::printTree() { + + for(int i=0;i