"LayeredEmbedding" (Graph Layout Method)

Details & Suboptions

  • The layered digraph embedding is a graph-drawing technique to position vertices of a graph on parallel lines.
  • The layered embedding is typically used to lay out acyclic graphs.
  • Possible settings to control the layout include:
  • "LayerSizeFunction" Automaticrelative height function
    "LeafDistance" Automaticleaf distance
    "Orientation" Automaticlayout orientation
    "RootVertex" Automaticroot vertex


open allclose all

Basic Examples  (3)

Place vertices in several layers in such a way as to minimize edges between nonadjacent layers:

"LayeredEmbedding" works best for tree graphs:

The layered drawing works on arbitrary graphs:

Options  (4)

"LayerSizeFunction"  (1)

Use the option "LayerSizeFunction"func to specify the relative height:

"LeafDistance"  (1)

Use the option "LeafDistance"d to specify the leaf distance:

"Orientation"  (1)

Use the option "Orientation"o to draw a tree with different orientations:

"RootVertex"  (1)

Use the option "RootVertex"v to set the root vertex: