Returns the length of the longest path from a root node to a leaf node.
getDepth(tree)
A semtree
object
Brandmaier, A.M., Oertzen, T. v., McArdle, J.J., & Lindenberger, U. (2013). Structural equation model trees. Psychological Methods, 18(1), 71-86.