Actually set max-node-id and max-edge-id for graph

These might be needed if one adds nodes after the initial
build of the graph.