Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica >
Built-in Mathematica Symbol|See 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:
Draw the graph with a different packing method:
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]=
Draw a disconnected graph:
Compare different packing methods:
New in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team