Make graph depth one-based.