University of Connecticut University of UC Title Fallback Connecticut

Test saving trees

Add the following line to main.cpp (after createTestTree() is called):

std::cout << tm.makeNewick(3) << std::endl;

You should see the following additional line appear in the output when the program is run:


Note that 3 decimal places are used in outputting edge lengths because you supplied 3 as an argument to the makeNewick function.