GraphUtilities`
GraphUtilities`

ExpressionTreePlot

As of Version 10, all the functionality of the GraphUtilities package is built into the Wolfram System. »

ExpressionTreePlot[e]

plots the expression tree of e.

ExpressionTreePlot[e,pos]

plots the expression tree of e with its root placed at position pos.

ExpressionTreePlot[e,pos,lev]

plots the expression tree of e up to level lev with its root placed at position pos.

更多信息和选项

范例

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

基本范例  (2)

An expression tree plot, with tooltips for each vertex giving the subexpression from that vertex down:

ExpressionTreePlot has been superseded by TreeForm:

Scope  (2)

When Hold, HoldForm, etc. are used, the expressions inside them are not evaluated:

An expression tree up to level 2 with its root at the left:

Options  (1)

This gives an expression tree with no vertex labels, except that all subexpressions are shown as tooltips:

Applications  (1)

This plots a binary tree:

This plots a 5-ary tree:

Properties & Relations  (1)

TreeForm also gives the expression tree, although the orientation of the tree cannot be specified:

ExpressionTreePlot can specify root position:

Wolfram Research (2007),ExpressionTreePlot,Wolfram 语言函数,https://reference.wolfram.com/language/GraphUtilities/ref/ExpressionTreePlot.html.

文本

Wolfram Research (2007),ExpressionTreePlot,Wolfram 语言函数,https://reference.wolfram.com/language/GraphUtilities/ref/ExpressionTreePlot.html.

CMS

Wolfram 语言. 2007. "ExpressionTreePlot." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/GraphUtilities/ref/ExpressionTreePlot.html.

APA

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

BibTeX

@misc{reference.wolfram_2024_expressiontreeplot, author="Wolfram Research", title="{ExpressionTreePlot}", year="2007", howpublished="\url{https://reference.wolfram.com/language/GraphUtilities/ref/ExpressionTreePlot.html}", note=[Accessed: 18-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_expressiontreeplot, organization={Wolfram Research}, title={ExpressionTreePlot}, year={2007}, url={https://reference.wolfram.com/language/GraphUtilities/ref/ExpressionTreePlot.html}, note=[Accessed: 18-November-2024 ]}