Skip to main content

TreeDepth

TreeDepth[tree] gives the maximum level of tree.

TreeDepth[tree,pattern] gives the maximum level of the subtree with data matching pattern.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.