TreeLeaves

TreeLeaves[tree]

返回树 tree 的叶子列表.

更多信息

范例

打开所有单元关闭所有单元

基本范例  (1)

获取树的叶子:

属性和关系  (3)

TreeLeaves 给出在层 -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 语言. 2021. "TreeLeaves." Wolfram 语言与系统参考资料中心. Wolfram Research. 最新版本 2022. https://reference.wolfram.com/language/ref/TreeLeaves.html.

APA

Wolfram 语言. (2021). TreeLeaves. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/TreeLeaves.html 年

BibTeX

@misc{reference.wolfram_2024_treeleaves, author="Wolfram Research", title="{TreeLeaves}", year="2022", howpublished="\url{https://reference.wolfram.com/language/ref/TreeLeaves.html}", note=[Accessed: 03-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_treeleaves, organization={Wolfram Research}, title={TreeLeaves}, year={2022}, url={https://reference.wolfram.com/language/ref/TreeLeaves.html}, note=[Accessed: 03-December-2024 ]}