PackingMethod

As of Version 12.0, PackingMethod has been superseded by GraphLayout.

PackingMethod

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

Details

  • 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".

Examples

open allclose all

Basic Examples  (2)

Draw a disconnected graph:

Draw the graph with a different packing method:

Scope  (2)

Draw a disconnected graph:

Compare different packing methods:

Wolfram Research (2007), PackingMethod, Wolfram Language function, https://reference.wolfram.com/language/ref/PackingMethod.html.

Text

Wolfram Research (2007), PackingMethod, Wolfram Language function, https://reference.wolfram.com/language/ref/PackingMethod.html.

CMS

Wolfram Language. 2007. "PackingMethod." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/PackingMethod.html.

APA

Wolfram Language. (2007). PackingMethod. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/PackingMethod.html

BibTeX

@misc{reference.wolfram_2024_packingmethod, author="Wolfram Research", title="{PackingMethod}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/PackingMethod.html}", note=[Accessed: 22-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_packingmethod, organization={Wolfram Research}, title={PackingMethod}, year={2007}, url={https://reference.wolfram.com/language/ref/PackingMethod.html}, note=[Accessed: 22-December-2024 ]}