TreeData

TreeData[tree]

提取 Tree 对象 tree 的根部数据.

更多信息

范例

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

基本范例  (2)

提取树根部的数据:

使用 TreeExtract 中的 TreeData

属性和关系  (3)

TreeData[Tree[data,subtrees]] 给出 data

TreeChildren[tree] 给出 None 时,RootTree[tree] 给出 Tree[TreeData[tree],None]

TreeChildren[tree] 给出列表时,RootTree[tree] 给出 Tree[TreeData[tree],{}]

Wolfram Research (2021),TreeData,Wolfram 语言函数,https://reference.wolfram.com/language/ref/TreeData.html (更新于 2021 年).

文本

Wolfram Research (2021),TreeData,Wolfram 语言函数,https://reference.wolfram.com/language/ref/TreeData.html (更新于 2021 年).

CMS

Wolfram 语言. 2021. "TreeData." Wolfram 语言与系统参考资料中心. Wolfram Research. 最新版本 2021. https://reference.wolfram.com/language/ref/TreeData.html.

APA

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

BibTeX

@misc{reference.wolfram_2024_treedata, author="Wolfram Research", title="{TreeData}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/TreeData.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_treedata, organization={Wolfram Research}, title={TreeData}, year={2021}, url={https://reference.wolfram.com/language/ref/TreeData.html}, note=[Accessed: 22-November-2024 ]}