regular

type: bool, default: false

If true, force polygon to be regular, i.e., 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
Last modified August 8, 2021 : Add example for regular attr (8362b1b)