@Test
public void testCreateResult() {

	
	PartitioningWithPositiveAndNegativeEdges<String> clusterer = new PartitioningWithPositiveAndNegativeEdges<>(0.0);
	clusterer.setLog(true);
	clusterer.addEdge(new Triple<String, String, Double>("1", "2", 0.67));
	clusterer.addEdge(new Triple<String, String, Double>("1", "3", 0.5));
	clusterer.addEdge(new Triple<String, String, Double>("1", "3", -0.5));
	clusterer.addEdge(new Triple<String, String, Double>("1", "4", -0.7));
	clusterer.addEdge(new Triple<String, String, Double>("2", "3", 0.33));
	clusterer.addEdge(new Triple<String, String, Double>("2", "3", -0.33));
	clusterer.addEdge(new Triple<String, String, Double>("2", "5", 0.67));
	clusterer.addEdge(new Triple<String, String, Double>("3", "4", 0.7));
	clusterer.addEdge(new Triple<String, String, Double>("3", "5", 0.8));
	clusterer.addEdge(new Triple<String, String, Double>("4", "5", 0.6));
	
	clusterer.addEdge(new Triple<String, String, Double>("2", "1", 0.67));
	clusterer.addEdge(new Triple<String, String, Double>("3", "1", 0.5));
	clusterer.addEdge(new Triple<String, String, Double>("3", "1", -0.5));
	clusterer.addEdge(new Triple<String, String, Double>("4", "1", -0.7));
	clusterer.addEdge(new Triple<String, String, Double>("3", "2", 0.33));
	clusterer.addEdge(new Triple<String, String, Double>("3", "2", -0.33));
	clusterer.addEdge(new Triple<String, String, Double>("5", "2", 0.67));
	clusterer.addEdge(new Triple<String, String, Double>("4", "3", 0.7));
	clusterer.addEdge(new Triple<String, String, Double>("5", "3", 0.8));
	clusterer.addEdge(new Triple<String, String, Double>("5", "4", 0.6));
	Map<Collection<String>, String> clustering = clusterer.createResult();
	
	for(Collection<String> cluster : clustering.keySet()) {
		logger.info(StringUtils.join(cluster, ","));
	}
	
	assertTrue(Q.toSet(Q.toSet("1", "2"), Q.toSet("3", "4", "5")).equals(clustering.keySet()));
}