working with large nested graphs