connectParentToChildren(xc, xe, xg);
connectParentToChildren(xd, xf);
connectParentToChildren(xe, xf, xh);
connectParentToChildren(xg, xh);
OpenBitSet clique1 = bitSet("00111000"); // d, e, f
OpenBitSet clique2 = bitSet("00011100"); // c, d, e
OpenBitSet clique3 = bitSet("01010100"); // c, e, g
OpenBitSet clique4 = bitSet("11010000"); // e, g, h
OpenBitSet clique5 = bitSet("00001110"); // b, c, d
OpenBitSet clique6 = bitSet("00000111"); // a, b, c
OpenBitSet clique1And2 = bitSet("00011000"); // d, e
OpenBitSet clique2And3 = bitSet("00010100"); // c, e
OpenBitSet clique2And5 = bitSet("00001100"); // c, d
OpenBitSet clique3And4 = bitSet("01010000"); // e, g
OpenBitSet clique5And6 = bitSet("00000110"); // b, c
// clique1
JunctionTreeBuilder jtBuilder = new JunctionTreeBuilder( graph );
JunctionTreeClique root = jtBuilder.build(false).getRoot();
assertEquals( clique1, root.getBitSet() );