TreeLeaves
TreeLeaves[tree]
木 tree の葉のリストを返す.
詳細
- TreeLeavesはTreeLeafQがTrueを与えるTreeオブジェクトの部分木{leaf1,leaf2,…}をリストにする.
- TreeLeaves[tree]はTreeLevel[tree,{-1}]に等しい.
例題
すべて開くすべて閉じる特性と関係 (3)
TreeLeaves[tree]はTreeLevel[tree,{-1}]に等しい:
TreeLeaves[tree]はTreeLeafQがTrueを返す部分木のリストを返す:
TreeLeafCount[tree]はLength[TreeLeaves[tree]]に等しい:
Wolfram Research (2021), TreeLeaves, Wolfram言語関数, https://reference.wolfram.com/language/ref/TreeLeaves.html (2022年に更新).
テキスト
Wolfram Research (2021), TreeLeaves, Wolfram言語関数, https://reference.wolfram.com/language/ref/TreeLeaves.html (2022年に更新).
CMS
Wolfram Language. 2021. "TreeLeaves." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2022. https://reference.wolfram.com/language/ref/TreeLeaves.html.
APA
Wolfram Language. (2021). TreeLeaves. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TreeLeaves.html