commit-graph: verify generation number