Change Ceres verbosity to error only
Fix some typo error and make the subgraph edge sorting simpler.