W3cubDocs

/Graphviz

regular

If true, force polygon to be regular.

type: bool, default: false

If true, the vertices of the polygon will lie on a circle whose center is the center of the node.

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

© 2025 The Graphviz Authors
Licensed under the Eclipse Public License 1.0.
https://www.graphviz.org/docs/attrs/regular/