Changeset 17 for src/main/java/weka/clusterers/forMetisMQI/MQI.java
- Timestamp:
- Sep 23, 2010, 10:32:44 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/weka/clusterers/forMetisMQI/MQI.java
r16 r17 159 159 */ 160 160 static public Set<Node> mqi(Bisection partition) { 161 System.out.println("INITIAL BISECTION: " + partition.toString());161 // System.out.println("INITIAL BISECTION: " + partition.toString()); 162 162 boolean finished = false; 163 163 Bisection bisection = partition; … … 167 167 int maxFlowThreshold = Integer.MAX_VALUE; 168 168 while (!finished) { 169 Node source = new Node(" S");170 Node sink = new Node(" T");169 Node source = new Node("$$$$S"); 170 Node sink = new Node("$$$$T"); 171 171 DirectedGraph<Node, Edge> directedGraph = prepareDirectedGraph( 172 172 bisection, source, sink); … … 182 182 public Edge create() { 183 183 i++; 184 return new Edge(" f" + Integer.toString(i), 1, 1);184 return new Edge("$$$$" + Integer.toString(i), 1, 1); 185 185 } 186 186 }; … … 194 194 alg.evaluate(); 195 195 // Util.viewFlowGraph(directedGraph, edgeFlowMap); 196 System.out.println("MAX FLOW: " + alg.getMaxFlow() + " THRESHOLD: "197 + maxFlowThreshold);196 // System.out.println("MAX FLOW: " + alg.getMaxFlow() + " THRESHOLD: " 197 // + maxFlowThreshold); 198 198 if (alg.getMaxFlow() < maxFlowThreshold) { 199 199 cluster = DFSReversed(sink, directedGraph, edgeFlowMap, new HashSet<Node>()); … … 201 201 bisection = new Bisection(new Subgraph(bisection.getGraph(), 202 202 cluster)); 203 System.out.println("NEW BISECTION: " + bisection.toString());203 // System.out.println("NEW BISECTION: " + bisection.toString()); 204 204 } else 205 205 finished = true;
Note: See TracChangeset
for help on using the changeset viewer.