class

type: string, default: ""

Classnames to attach to the node, edge, graph, or cluster’s SVG element. Combine with stylesheet for styling SVG output using CSS classnames.

Multiple space-separated classes are supported.

See also:

Example:

digraph G { graph [class="cats"]; subgraph cluster_big { graph [class="big_cats"]; "Lion" [class="yellow social"]; "Snow Leopard" [class="white solitary"]; } }
Valid on:
  • Clusters
  • Edges
  • Graphs
  • Nodes
Note: svg only
Last modified July 2, 2021 : Add 'see also' to class attribute (211dbea)