removeSet.add(cur);
}
}
+
if (!removeSet.isEmpty()) {
- // remove relations of locationElement -> cycle
+ // // remove relations of locationElement -> cycle
connectedSet.removeAll(removeSet);
// add a new relation of location Element -> shared loc
connectedSet.add(newLoc);