This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
Built-in Mathematica SymbolSee Also »

PackingMethod

PackingMethod
is an option for GraphPlot and related functions which specifies how disconnected components should be packed together in the layout produced.
  • 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".
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