Package org.cytoscape.ClusterViz.internal

Examples of org.cytoscape.ClusterViz.internal.Clique


     */
    protected void expand(HashMap cliques,Vector curr, Vector cand,
        Vector not){
      if(cand.isEmpty() && not.isEmpty()){//the expanding process has come to an end
        int num=cliques.size();
        Clique pc=new Clique(num)//the node in cur can form a new maximal clique
        ArrayList alNodes=new ArrayList();
        Iterator it=curr.iterator();
        while(it.hasNext()){
          Long node=(Long)it.next();
          alNodes.add(node);
        }
        pc.setCliqueNodes(alNodes);
        cliques.put(new Integer(pc.getCliuqueID()), pc)//add to the maximal clique list
     
      else
      {
        Long p;
        int i;
View Full Code Here


       /********************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();
                   
                   
View Full Code Here

TOP

Related Classes of org.cytoscape.ClusterViz.internal.Clique

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.