Ignore:
Timestamp:
Sep 29, 2010, 9:13:19 AM (14 years ago)
Author:
gnappo
Message:

Implementato raffinamento KL in metis; implementata ottimizzazione di mqi sulla conduttanza.

File:
1 edited

Legend:

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

    r15 r18  
    55import java.awt.Paint;
    66import java.util.HashMap;
     7import java.util.HashSet;
    78import java.util.Iterator;
    89import java.util.Map;
     
    1819import weka.clusterers.forMetisMQI.graph.UndirectedGraph;
    1920import edu.uci.ics.jung.algorithms.layout.FRLayout;
     21import edu.uci.ics.jung.algorithms.layout.ISOMLayout;
    2022import edu.uci.ics.jung.algorithms.layout.Layout;
    2123import edu.uci.ics.jung.graph.Graph;
     
    2426
    2527public class Util {
     28       
     29        public static void viewCluster(Graph<Node, Edge> g, Set<Node> cluster) {
     30                Set<Set<Node>> clusters = new HashSet<Set<Node>>();
     31                clusters.add(cluster);
     32                viewClusters(g, clusters);
     33        }
     34       
     35       
    2636        public static void viewClusters(Graph<Node, Edge> g, Set<Set<Node>> clusters) {
    2737                Layout<Node, Edge> layout = new FRLayout<Node, Edge>(g);
Note: See TracChangeset for help on using the changeset viewer.