W3cubDocs

/Graphviz

overlap_scaling

Scale layout by factor, to reduce node overlap.

type: double, default: -4, minimum: -1e+10

When overlap=prism, the layout is scaled by this factor, thereby removing a fair amount of node overlap, and making node overlap removal faster and better able to retain the graph's shape.

  • If overlap_scaling is negative, the layout is scaled by -1*overlap_scaling times the average label size.

  • If overlap_scaling is positive, the layout is scaled by overlap_scaling.

  • If overlap_scaling is zero, no scaling is done.

Valid on:
  • Graphs

Note: prism, neato, sfdp, fdp, circo, twopi only.

© 2025 The Graphviz Authors
Licensed under the Eclipse Public License 1.0.
https://www.graphviz.org/docs/attrs/overlap_scaling/