BUILT-IN MATHEMATICA SYMBOL

PackingMethod

PackingMethod
is an option for GraphPlot and related functions which specifies how disconnected components should be packed together in the layout produced.

DetailsDetails

  • Typical possible settings are:
  • "ClosestPacking"approximate closest packing from the top left
    "ClosestPackingCenter"approximate closest packing from the center
    "Layered"arrange in layers starting at the top left
    "LayeredLeft"arrange in layers starting at the left
    "LayeredTop"arrange in layers starting at the top
    "NestedGrid"arrange on a nested grid
  • The typical effective default setting is PackingMethod->"Layered".

ExamplesExamplesopen allclose all

Basic Examples (2)Basic Examples (2)

Draw a disconnected graph:

In[1]:=
Click for copyable input
Out[1]=

Draw the graph with a different packing method:

In[1]:=
Click for copyable input
Out[1]=
New in 6
New to Mathematica? Find your learning path »
Have a question? Ask support »