Ignore:
Timestamp:
Oct 5, 2010, 9:55:49 PM (14 years ago)
Author:
gnappo
Message:

Implementato pannello per la visualizzazione grafi.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/weka/clusterers/forMetisMQI/GraphAlgorithms.java

    r22 r23  
    1111import weka.clusterers.forMetisMQI.graph.UndirectedGraph;
    1212import weka.clusterers.forMetisMQI.util.CoarserGraphElement;
     13import weka.clusterers.forMetisMQI.util.GraphsFrame;
    1314import weka.clusterers.forMetisMQI.util.Util;
    1415
     
    8182         */
    8283        static public Set<Set<Node>> metisMqi(UndirectedGraph g, int numberOfCluster, int sizeFinerGraph, boolean randomBisection) {
     84                GraphsFrame gf = new GraphsFrame("Prova");
    8385                System.out.println("Vertex count: " + g.getVertexCount());
    8486                System.out.println("Edges count: " + g.getEdgeCount());
     
    9395                Set<Set<Node>> clusters = new HashSet<Set<Node>>();
    9496                UndirectedGraph gclone = g.clone();
    95 //              Util.viewGraph(g);
     97                gf.addPanel(Util.panelGraph(gclone));
    9698                for (int i = 0; i < numberOfCluster; i++) {
    9799                        Bisection bisection = null;
     
    125127                        }
    126128                }
    127                 Util.viewClusters(gclone, clusters);
     129                gf.addPanel(Util.panelClusters(gclone, clusters));
     130                gf.setVisible(true);
    128131                return clusters;
    129132        }
Note: See TracChangeset for help on using the changeset viewer.