final BitSet merged = BitSets.of(minorFactor, majorFactor);
for (int i = 0; i < unusedEdges.size(); i++) {
final LoptMultiJoin.Edge edge = unusedEdges.get(i);
if (edge.factors.intersects(merged)) {
BitSet newEdgeFactors = (BitSet) edge.factors.clone();
newEdgeFactors.andNot(newFactors);
newEdgeFactors.set(v);
assert newEdgeFactors.cardinality() == 2;
final LoptMultiJoin.Edge newEdge =
new LoptMultiJoin.Edge(edge.condition, newEdgeFactors,
edge.columns);