TreeChildren
TreeChildren[tree]
提取 Tree 对象 tree 的根的孩子.
更多信息
- TreeChildren 返回 Tree[data,{subtree1,subtree2,…}] 的孩子 {subtree1,subtree2,…}.
- TreeChildren[Tree[data,None]] 给出 None.
范例
打开所有单元关闭所有单元属性和关系 (4)
TreeChildren[Tree[data,subtrees]] 给出 subtrees:
TreeChildren[Tree[data,{}]] 给出 {}:
TreeChildren[Tree[data,None]] 给出 None:
当 TreeChildren[tree] 给出 None 时,RootTree[tree] 给出 Tree[TreeData[tree],None]:
当 TreeChildren[tree] 给出列表时,RootTree[tree] 给出 Tree[TreeData[tree],{}]:
当 TreeChildren[tree] 给出列表时,TreeChildren[tree] 等价于 TreeLevel[tree,{1}]:
文本
Wolfram Research (2021),TreeChildren,Wolfram 语言函数,https://reference.wolfram.com/language/ref/TreeChildren.html (更新于 2022 年).
CMS
Wolfram 语言. 2021. "TreeChildren." Wolfram 语言与系统参考资料中心. Wolfram Research. 最新版本 2022. https://reference.wolfram.com/language/ref/TreeChildren.html.
APA
Wolfram 语言. (2021). TreeChildren. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/TreeChildren.html 年