W3cubDocs

/Graphviz

labeldistance

Scaling factor for the distance of headlabel / taillabel from the head / tail nodes.

type: double, default: 1.0, minimum: 0.0

The default distance is 10 points.

labeldistance multiplies that default.

See labelangle for more details.

Valid on:
  • Edges

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