TreeDepth
例題
すべて開くすべて閉じる特性と関係 (6)
TreeDepth[tree]は一般にTreeDepth[tree,_]に等しい:
TreeDepth[tree]における子の空リストは1レベルに貢献する:
TreeDepth[Tree[{tree1,tree2,…}]]は1+Max[TreeDepth[tree1],TreeDepth[tree2],…]を与える:
TreeDepth[Tree[data,None]]は0を与える:
TreeDepth[Tree[data,{}]]は1を与える:
Depth[expr]は1+TreeDepth[ExpressionTree[expr,"Subexpressions"]]に等しい:
Depth[expr,HeadsTrue]は1+TreeDepth[ExpressionTree[expr,"Subexpressions",HeadsTrue]]に等しい:
テキスト
Wolfram Research (2021), TreeDepth, Wolfram言語関数, https://reference.wolfram.com/language/ref/TreeDepth.html (2022年に更新).
CMS
Wolfram Language. 2021. "TreeDepth." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2022. https://reference.wolfram.com/language/ref/TreeDepth.html.
APA
Wolfram Language. (2021). TreeDepth. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TreeDepth.html