({{, PackingMethod 
is an option for (RefLink[GraphPlot, paclet:ref/GraphPlot]) and related functions that specifies how disconnected components should be packed together in the layout produced.}})

OpenersNotesSection(Spacer1)Details

Typical possible settings are:

The typical effective default setting is PackingMethod->"Layered".

OpenersPrimaryExamplesSection(Spacer1)Examples  (4)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

Draw a disconnected graph:

GraphPlot[Table[i->Mod[i^3,100],{i,1,100}]]

Draw the graph with a different packing method:

GraphPlot[Table[i->Mod[i^3,100],{i,1,100}],PackingMethod->"ClosestPackingCenter"]

OpenersExampleSection1(Spacer1)Scope  (2)

Draw a disconnected graph:

GraphPlot[Flatten[Table[j->FromDigits[Reverse[IntegerDigits[j,2]],2],{j,0,2^9-1}]]]//Timing

Compare different packing methods:

g=Flatten[Table[Table[j->FromDigits[Insert[IntegerDigits[j,2],1,i],2],{i,Length[IntegerDigits[j,2]]+1}],{j,0,2^8-1}]];

Grid[Partition[Table[GraphPlot[g,PlotLabel->pm,MultiedgeStyle->False,PackingMethod->pm,BaselinePosition->Top],{pm,{"Layered","LayeredTop","LayeredLeft","ClosestPacking","ClosestPackingCenter","NestedGrid"}}],{3}]]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[GraphicsGrid, paclet:ref/GraphicsGrid])  ▪  (RefLink[Inset, paclet:ref/Inset])}})}})