Adding max/min for walking graph