GuideTree implements Iterable<GuideTreeNode<S, C>> { @Override public String toString() { return newick; } GuideTree(List<S> sequences, List<PairwiseSequenceScorer<S, C>> scorers); int[] getAllPairsScores(); double[][] getDistanceMatrix(); Node getRoot(); int[][] getScoreMatrix(); List<S> getSequences(); @Override Iterator<GuideTreeNode<S, C>> iterator(); @Override String toString();  }
@Test public void testToString() { assertEquals(tree.toString(), "(((1:0.0,2:0.0):-1.4,3:0.8999999999999999):-0.7,4:-0.7)"); }