bad coarsen bug: nextId increment; checkGraph