/********************Initialize the complexes*************************/
ArrayList alClusters=new ArrayList();
ArrayList optimals=null;
for(int i=0;i<curCliques.size();i++){
Clique cur=(Clique)curCliques.get(new Integer(i));
ArrayList nodes=cur.getCliqueNodes();
if(nodes.size() >= params.getCliqueSizeThreshold1()){
Cluster newCluster=new Cluster();
ArrayList alNodes=new ArrayList();
Iterator it=nodes.iterator();
while(it.hasNext()){
Long n=(Long)it.next();
alNodes.add(n);
}
newCluster.setAlCluster(alNodes);
alClusters.add(newCluster);
}
else cur.setSubordinate(true);
}
for(int i=0;i<curCliques.size();i++){
Clique cur=(Clique)curCliques.get(new Integer(i));
if(cur.isSubordinate()){
ArrayList nodes=cur.getCliqueNodes();
Iterator it=nodes.iterator();
while(it.hasNext()){
Long n=(Long) it.next();