Changeset 18 for src/main/java/weka/clusterers/forMetisMQI/util
- Timestamp:
- Sep 29, 2010, 9:13:19 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/weka/clusterers/forMetisMQI/util/Util.java
r15 r18 5 5 import java.awt.Paint; 6 6 import java.util.HashMap; 7 import java.util.HashSet; 7 8 import java.util.Iterator; 8 9 import java.util.Map; … … 18 19 import weka.clusterers.forMetisMQI.graph.UndirectedGraph; 19 20 import edu.uci.ics.jung.algorithms.layout.FRLayout; 21 import edu.uci.ics.jung.algorithms.layout.ISOMLayout; 20 22 import edu.uci.ics.jung.algorithms.layout.Layout; 21 23 import edu.uci.ics.jung.graph.Graph; … … 24 26 25 27 public 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 26 36 public static void viewClusters(Graph<Node, Edge> g, Set<Set<Node>> clusters) { 27 37 Layout<Node, Edge> layout = new FRLayout<Node, Edge>(g);
Note: See TracChangeset
for help on using the changeset viewer.