TreeLayout

TreeLayout

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

Details

  • 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

Examples

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, https://reference.wolfram.com/language/ref/TreeLayout.html.

Text

Wolfram Research (2021), TreeLayout, Wolfram Language function, https://reference.wolfram.com/language/ref/TreeLayout.html.

CMS

Wolfram Language. 2021. "TreeLayout." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TreeLayout.html.

APA

Wolfram Language. (2021). TreeLayout. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TreeLayout.html

BibTeX

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

BibLaTeX

@online{reference.wolfram_2022_treelayout, organization={Wolfram Research}, title={TreeLayout}, year={2021}, url={https://reference.wolfram.com/language/ref/TreeLayout.html}, note=[Accessed: 29-November-2022 ]}