Repair graphs with new edge index.
Take out some diagnostics.