WeightedCliqueTree clique = new WeightedCliqueTree();
clique.setGraph(graph);
double[] weights = new double[] { 1, 1, 1, 1, 1, 1, 1, 1 };
IntDoublePair[] nodesAsPairs = new IntDoublePair[8];
for (int i = 0; i < nodesAsPairs.length; i++) {
nodesAsPairs[i] = new IntDoublePair(i, weights[i]);
}
Assert.assertEquals("Size of clique should be 0", 0, clique.clique()
.size());
clique.add(nodesAsPairs[1]);