int index= 0;
while (!toProcess.isEmpty()) {
Object next= Collections.min(toProcess, gravityComp);
array[index]= next;
index++;
dag.removeVertex(next);
toProcess= dag.getSources();
}
Assert.isTrue(index == array.length);
ListIterator it= descriptors.listIterator();