graph API: fix graph mis-alignment after uninteresting commits