class

附加到节点、边、图或簇的 SVG 元素的类名

类型: 字符串,默认值: ""

stylesheet 结合使用,通过 CSS 类名对 SVG 输出进行样式设置。

支持多个以空格分隔的类。

另请参阅

示例

digraph G {
  graph [class="cats"];

  subgraph cluster_big {
    graph [class="big_cats"];

    "Lion" [class="yellow social"];
    "Snow Leopard" [class="white solitary"];
  }
}
有效范围
  • 节点

注意: 仅限 svg

在 Graphviz 代码库中搜索 "class"

上次修改时间 2024 年 7 月 28 日: 将所有 Hugo 'ref' 替换为 'relref' (bbef86a)