Graphviz-何为有效的样式属性?

9

Graphviz 属性文档 描述了 style 属性,但没有说明它可能具有哪些值:

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.

什么是Graphviz中有效的样式属性?
1个回答

10
如果您仔细观察,同一份文档页面还指定了一个名为“style”的类型,描述了有效的样式。摘录如下:
目前,节点和边缘的已识别样式名称为“dashed”、“dotted”、“solid”、“invis”和“bold”,仅适用于边缘的是“tapered”,仅适用于节点的是“filled”、“striped”、“wedged”、“diagonals”和“rounded”。对于聚类,识别样式“filled”、“striped”和“rounded”。节点、聚类和图形都识别样式“radial”,如果适用,则表示径向渐变填充。

4
dot 中,同时具有“圆角”和“填充”的样式是合法的。我在这里或文档中没有看到对此问题的任何讨论。 - Robert P. Goldman
2
style="rounded,dotted" 对我有效,这导致一个 box 形状的节点具有 同时 dottedrounded 边框。 - LVK

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接