Mathematica >
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
© 2008 Wolfram Research, Inc. japanese.gif
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team