Skip to main content

Style Graphviz

DOT supports graph, node, and edge attributes.

Start with the general presentation settings. Edit shared or raw presentation in Details, and keep renderer-specific styling in Source.

Source controls

  • Set graph defaults with a graph attribute statement.
  • Set node defaults with a node attribute statement.
  • Set edge defaults with an edge attribute statement.
  • Add an attribute list to override one element.

Renderer options

OptionValuesPurpose
layoutdot, neato, fdp, sfdp, twopi, or circoSelect the layout program.
graph-attribute-{name}A DOT graph attribute valueSet one graph attribute.
node-attribute-{name}A DOT node attribute valueSet one default node attribute.
edge-attribute-{name}A DOT edge attribute valueSet one default edge attribute.
scaleNumber; default is 72.0Set the input scale for position data.