What I want to do
Get the max depth of hierarchy of a Company nodes.
What I did
I have nodes Company, and then it is connected down to other Company (children of it) by “subsidiary” edge.
for eg:
A->B->D->E
|
→ C
I need to get that max depth is 3.