W3cubDocs

/Graphviz

label_scheme

Whether to treat a node whose name has the form |edgelabel|* as a special node representing an edge label.

type: int, default: 0, minimum: 0

  • The default, label_scheme=0, produces no effect.
  • If label_scheme=1, sfdp uses a penalty-based method to make that kind of node close to the center of its neighbor.
  • With label_scheme=2, sfdp uses a penalty-based method to make that kind of node close to the old center of its neighbor.
  • Finally, label_scheme=3 invokes a two-step process of overlap removal and straightening.
Valid on:
  • Graphs

Note: sfdp only.

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