use max id in graph as step during id compression