Changeset 22 for src/main/java/weka/clusterers/MetisMQIClusterer.java
- Timestamp:
- Oct 5, 2010, 5:14:37 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/weka/clusterers/MetisMQIClusterer.java
r14 r22 36 36 */ 37 37 private Map<Node, Integer> nodeMap = null; 38 39 /** 40 * True if a random bisection must be used. 41 */ 42 private boolean randomBisection = false; 38 43 39 44 /** … … 48 53 g.loadFromInstance(data); 49 54 Set<Set<Node>> clusters = GraphAlgorithms.metisMqi(g, numberOfClusters, 50 sizeFinerGraph );55 sizeFinerGraph, randomBisection); 51 56 setNumClusters(clusters.size()); 52 57 int i = 0; … … 118 123 setSizeFinerGraph(Integer.parseInt(optionString)); 119 124 } 125 optionString = Utils.getOption('R', options); 126 setRandomBisection(Boolean.parseBoolean(optionString)); 127 } 128 129 private void setRandomBisection(boolean b) { 130 this.randomBisection = b; 120 131 } 121 132 … … 134 145 result.add("-S"); 135 146 result.add("" + getSizeFinerGraph()); 147 result.add("-R"); 136 148 return (String[]) result.toArray(new String[result.size()]); 137 149 }
Note: See TracChangeset
for help on using the changeset viewer.