WOLFRAM

  • Vertex layout for GraphLayout.
  • Use layered digraph embedding to lay out vertices of a graph.

Details & Suboptions

  • The layered digraph embedding is a graph-drawing technique to position vertices of a graph on parallel lines.
  • The layered digraph embedding is typically used to lay out directed acyclic graphs.
  • Possible settings to control the layout include:
  • "Orientation" Automaticlayout orientation
    "RootVertex" Automaticroot vertex
    "VertexLayerPosition" Automaticposition of the layers

Examples

open allclose all

Basic Examples  (3)Summary of the most common use cases

Place vertices in a series of layers:

Out[1]=1

"LayeredDigraphEmbedding" works best for directed acyclic graphs:

Out[1]=1

The layered digraph drawing works on arbitrary graphs:

Out[1]=1

Options  (3)Common values & functionality for each option

"Orientation"  (1)

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

Out[1]=1

"RootVertex"  (1)

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

Out[1]=1

"VertexLayerPosition"  (1)

Use the option "VertexLayerPosition"positions to specify the positions of layers:

Out[4]=4

Applications  (1)Sample problems that can be solved with this function

Render a graph with vertices at heights based on their distances from the root:

Out[19]=19