[graph-tool] Discrepancy between histograms and final number of groups