regular

如果为true,强制多边形为正多边形。

类型: bool, 默认值: false

如果为true,多边形的顶点将位于一个圆上,该圆的中心是节点的中心。

digraph {
    "pentagon1" [shape="pentagon"];
    "pentagon2" [shape="pentagon" regular=true]
    "hexagon1" [shape="hexagon"];
    "hexagon2" [shape="hexagon" regular=true];
}
Valid on:
  • 节点

在Graphviz代码库中搜索"regular"