Implement support for dependency graphs that may require a larger recursion depth than Python allows.