Changeset 11 for src/main/java/weka/clusterers/forMetisMQI/Uncoarse.java
- Timestamp:
- Sep 16, 2010, 10:44:40 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/weka/clusterers/forMetisMQI/Uncoarse.java
r9 r11 4 4 import java.util.Stack; 5 5 6 import weka.clusterers.forMetisMQI.coarse.CoarserGraphElement; 7 import weka.clusterers.forMetisMQI.graph.Bisection; 8 import weka.clusterers.forMetisMQI.graph.Node; 9 import weka.clusterers.forMetisMQI.graph.Subgraph; 10 import weka.clusterers.forMetisMQI.graph.UndirectedGraph; 11 6 12 public class Uncoarse { 7 13 8 private boolean projectedBelongs(Node u, KLPartition partition, CoarserGraphElement cge) {14 private boolean projectedBelongs(Node u, Bisection partition, CoarserGraphElement cge) { 9 15 Subgraph s = partition.getSubgraph(); 10 16 Node mappedNode = cge.getMap().get(u); … … 18 24 * @param cge 19 25 */ 20 public KLPartition uncoarseOneStep(KLPartition partition, CoarserGraphElement cge) {26 public Bisection uncoarseOneStep(Bisection partition, CoarserGraphElement cge) { 21 27 UndirectedGraph projected = cge.getProjected(); 22 28 Subgraph part = new Subgraph(projected); … … 27 33 part.addVertex(u); 28 34 } 29 return new KLPartition(part);35 return new Bisection(part); 30 36 } 31 37 32 public KLPartition uncoarse(Stack<CoarserGraphElement> stack, KLPartition partition) {38 public Bisection uncoarse(Stack<CoarserGraphElement> stack, Bisection partition) { 33 39 while(stack.size() > 0) { 34 40 CoarserGraphElement element = stack.pop();
Note: See TracChangeset
for help on using the changeset viewer.