GuideTree implements Iterable<GuideTreeNode<S, C>> { public int[] getAllPairsScores() { int[] scores = new int[scorers.size()]; int n = 0; for (PairwiseSequenceScorer<S, C> scorer : scorers) { scores[n++] = scorer.getScore(); } return scores; } 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 testGetAllPairsScores() { assertArrayEquals(tree.getAllPairsScores(), new int[] {4, 0, 3, 0, 3, 0}); }