int nextSpot = numLeaves;
populateNewTree(copy->tree, root, nextSpot);
-
+
}
catch(exception& e) {
m->errorOut(e, "Tree", "getCopy");
tree[rc].setParent(index);
tree[lc].setParent(index);
+ tree[index].setBranchLength(oldtree[node].getBranchLength());
+ tree[rc].setBranchLength(oldtree[oldtree[node].getLChild()].getBranchLength());
+ tree[lc].setBranchLength(oldtree[oldtree[node].getRChild()].getBranchLength());
+
return (index++);
}else { //you are a leaf
int indexInNewTree = globaldata->gTreemap->getIndex(oldtree[node].getName());