type: double, default: 0.75, minimum: 0.01
This is taken as the initial, minimum width of the node. If fixedsize is true, this will be the final width of the node. Otherwise, if the node label requires more width to fit, the node's width will be increased to contain the label.
If the output format is dot, the value given to width will be the final value.
If the node shape is regular, the width and height are made identical:
If a value below the minimum value (0.01) is set, it will be rounded up to this minimum.
digraph {
"d" # default
"1in" [width=1]
"2in" [width=2]
}
© 2025 The Graphviz Authors
Licensed under the Eclipse Public License 1.0.
https://www.graphviz.org/docs/attrs/width/