]> git.donarmstrong.com Git - mothur.git/blobdiff - tree.cpp
print tree debugger
[mothur.git] / tree.cpp
index d332f4771ba0b3f890b407b8f5a0ca31834b46ad..eea3af4dea1f5db04cb689b052fb0177ef03e7f3 100644 (file)
--- 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<numNodes;i++){
+               cout << i << '\t';
+               tree[i].printNode();
+       }
+       
+}
+
+/*****************************************************************/
+
+