[graph] fixes to maximum recursion error when there is a large number

of edges in graph
Status Job ID Name Coverage
  Test
failed #5485
deps

failed #5486
test

 
Name Stage Failure
failed
test Test There has been a timeout failure or the job got stuck. Check your timeout limits or try again
No job trace
failed
deps Test There has been a timeout failure or the job got stuck. Check your timeout limits or try again
No job trace