WOLFRAM

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

Details & Suboptions

  • The balloon embedding is a graph-drawing technique to position vertices of a graph on a circle with the center at the parent vertex.
  • The balloon embedding is typically used to lay out tree graphs.
  • Possible settings to control the layout include:
  • "EvenAngle" Automaticvertices placed evenly in an enclosing circle
    "OptimalOrder" Trueoptimal ordering of vertices to minimize edge crossings
    "RootVertex" Automaticroot vertex
    "SectorAngles" Automaticsize of the angle of each sector

Examples

open allclose all

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

Place each vertex in an enclosing circle centered at its parent vertex:

Out[1]=1

"BalloonEmbedding" works best for tree graphs:

Out[1]=1

Options  (4)Common values & functionality for each option

"EvenAngle"  (1)

Use the option "EvenAngle"True to place vertices evenly in an enclosing circle:

Out[1]=1

"OptimalOrder"  (1)

With the setting "OptimalOrder"True, the vertex ordering optimizes the angular resolution and the aspect ratio:

Out[2]=2

"RootVertex"  (1)

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

Out[1]=1

"SectorAngles"  (1)

Use "SectorAngles"s to control the size of each sector:

Out[1]=1