"GravityEmbedding" (Graph Layout Method)

Details & Suboptions

  • The gravity embedding is a graph-drawing technique to position vertices of a graph so that they minimize mechanical, electrical and gravitational energy when each vertex has a charge and a mass and each edge corresponds to a spring.
  • The gravity embedding is typically used to lay out large, complex graphs with a root vertex.
  • Vertices can be embedded in .
  • Possible settings to control the layout include:
  • "RootVertex" Automaticroot vertex

Examples

open allclose all

Basic Examples  (1)

Place vertices using the gravity embedding:

Options  (1)

"RootVertex"  (1)

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