Re: Return the un even depth Graph present in a specific format

Thanks a lot .. I had a follow up question what if we aren't sure about the max depth is there a way to do a foreach loop for the return statement or is that something we will have to brute force and find the max depth first before returning it

Talking about the query from line 11-14