W3cubDocs

/Graphviz

decorate

Whether to connect the edge label to the edge with a line

type: bool, default: false

If true, attach edge label to edge by a 2-segment polyline, underlining the label, then going to the closest point of spline.

Example
digraph {
  a -> a [label="AA" decorate=true]
  a -> b [label="AB" decorate=true]
  b -> b [label="BB" decorate=false]
}
Valid on:
  • Edges

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