Skip to content

Commit

Permalink
sink_Set bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
BuZZ-dEE committed Jan 28, 2011
1 parent fa313f8 commit f635cfa
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions DiePaten.java
Expand Up @@ -231,10 +231,15 @@ public ArrayList<Integer> sinkSet(int[][] capacityMatrix) {

for (int i = 0; i < size; i++) {
sink_Set.add(i);
for (int j = 0; j < source_Set.size(); j++) {
if (source_Set.indexOf(j) == sink_Set.indexOf(i)) {
sink_Set.remove(i);
}
// for (int j = 0; j < source_Set.size(); j++) {
// if (source_Set.indexOf(j) == sink_Set.indexOf(i)) {
// sink_Set.remove(i);
// }
// }
}
for (int z = 0; z < source_Set.size(); z++) {
if (sink_Set.contains(source_Set.get(z))) {
sink_Set.remove(sink_Set.indexOf(source_Set.get(z)));
}
}

Expand Down

0 comments on commit f635cfa

Please sign in to comment.