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

Search the Graphviz codebase for "regular"