result.put(3, new double[] { 0.0, 6.0 });
result.put(3, new double[] { 6.0, 5.0 });
result.put(3, new double[] { 6.0, 6.0 });
List<List<ClusterNode>> clusters = AgglomerativeClustering.cluster(vecs,
new ManhattanDistance(), true);
assertEquals(4, clusters.size());
assertEquals(1, clusters.get(0).size());
assertEquals(2, clusters.get(1).size());
assertEquals(3, clusters.get(2).size());
assertEquals(6, clusters.get(3).size());