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

Search the Graphviz codebase for "decorate"

Last modified September 17, 2022: Update decorate.md: add another example (91744c7)