CliqueTree cliqueTree = new CliqueTree();
Vertex root = order[order.length - 1];
ArrayList<Vertex> rootCliqueVertices = new ArrayList<Vertex>();
rootCliqueVertices.add(root);
Node initialClique = new Node(null, rootCliqueVertices);
cliqueTree.addNode(initialClique);
vertexCliqueMap.put(root, initialClique);
for (int i = order.length - 2; i >= 0; i--) {
Vertex x = order[i];
ArrayList<Vertex> RNwithoutParent = new ArrayList<Vertex>(x.getRightNeighbours());
RNwithoutParent.remove(x.getParent());