Style Graphviz
DOT supports graph, node, and edge attributes.
Start with the general presentation settings. They control the canvas background, padding, and frame for every diagram.
Source controlsโ
- Set graph defaults with a
graphattribute statement. - Set node defaults with a
nodeattribute statement. - Set edge defaults with an
edgeattribute statement. - Add an attribute list to override one element.
Renderer optionsโ
| Option | Values | Purpose |
|---|---|---|
layout | dot, neato, fdp, sfdp, twopi, or circo | Select the layout program. |
graph-attribute-{name} | A DOT graph attribute value | Set one graph attribute. |
node-attribute-{name} | A DOT node attribute value | Set one default node attribute. |
edge-attribute-{name} | A DOT edge attribute value | Set one default edge attribute. |
scale | Number; default is 72.0 | Set the input scale for position data. |