idx = out.nextClearBit(0);
}
}
protected void addToMIS(int node) {
ISet nei = graph.getNeighOf(node);
inMIS.set(node);
out.set(node);
int sizeFifo=0;
for (int j = nei.getFirstElement(); j >= 0; j = nei.getNextElement()) {
if (!out.get(j)) {
out.set(j);
fifo[sizeFifo++] = j;
}
}
for (int i=0; i<sizeFifo; i++) {
nei = graph.getNeighOf(fifo[i]);
for (int j = nei.getFirstElement(); j >= 0; j = nei.getNextElement()) {
nbNeighbours[j]--;
}
}
}