is an option to Tree and related functions that specifies what layout to use.


  • TreeLayout allows the same tree to be graphically displayed in different orientations and two-dimensional embeddings.
  • Possible layouts include:
  • Automaticautomatically select a layout
    posorientation with the root at position pos
    "emb"named embedding
  • Possible orientation positions pos include:
  • Toproot at the top
    Bottomroot at the bottom
    Leftroot on the left
    Rightroot on the right
  • Possible named embeddings "emb" include:
  • "BalloonEmbedding"subtrees on a circle with the center at the parent
    "RadialEmbedding"subtrees on a circular segment
    "LayeredEmbedding"subtrees on parallel lines
    "LayeredDigraphEmbedding"subtrees on parallel lines, with alternative suboptions


open allclose all

Basic Examples  (2)

Orient the tree with the root to the left:

Specify a named embedding:

Scope  (5)

Orientations  (1)

Specify the orientation of the root:

"BalloonEmbedding"  (1)

Specify a balloon embedding:

"RadialEmbedding"  (1)

Specify a radial embedding:

"LayeredEmbedding"  (1)

Specify a layered embedding:

"LayeredDigraphEmbedding"  (1)

Layered digraph embedding:

Wolfram Research (2021), TreeLayout, Wolfram Language function,


Wolfram Research (2021), TreeLayout, Wolfram Language function,


Wolfram Language. 2021. "TreeLayout." Wolfram Language & System Documentation Center. Wolfram Research.


Wolfram Language. (2021). TreeLayout. Wolfram Language & System Documentation Center. Retrieved from


@misc{reference.wolfram_2024_treelayout, author="Wolfram Research", title="{TreeLayout}", year="2021", howpublished="\url{}", note=[Accessed: 22-May-2024 ]}


@online{reference.wolfram_2024_treelayout, organization={Wolfram Research}, title={TreeLayout}, year={2021}, url={}, note=[Accessed: 22-May-2024 ]}