jtpereyda
jtpereyda

Reputation: 7385

Graphviz - What is a valid style attribute?

The Graphviz attributes documentation describes the style attribute but does not say what values it may hold:

Set style information for components of the graph. For cluster subgraphs, if style="filled", the cluster box's background is filled. If the default style attribute has been set for a component, an individual component can use style="" to revert to the normal default. For example, if the graph has

edge [style="invis"]

making all edges invisible, a specific edge can overrride this via:

a -> b [style=""]

Of course, the component can also explicitly set its style attribute to the desired value.

What is a valid style attribute in Graphviz?

Upvotes: 9

Views: 9872

Answers (1)

jtpereyda
jtpereyda

Reputation: 7385

If you look closely, the same documentation page also specifies a Type named style describing valid styles. Excerpt:

At present, the recognized style names are "dashed", "dotted", "solid", "invis" and "bold" for nodes and edges, "tapered" for edges only, and "filled", "striped", "wedged", "diagonals" and "rounded" for nodes only. The styles "filled", "striped" and "rounded" are recognized for clusters. The style "radial" is recognized for nodes, clusters and graphs, and indicates a radial-style gradient fill if applicable.

Upvotes: 10

Related Questions