updated maxdepth graph