sides

Number of sides when shape=polygon

type: int, default: 4, minimum: 0

Example: Polygons with 3-6 sides
graph {
  Triangle  [shape=polygon sides=3]
  Rectangle [shape=polygon sides=4]
  Pentagon  [shape=polygon sides=5]
  Hexagon   [shape=polygon sides=6]
}
Valid on:
  • Nodes

Search the Graphviz codebase for "sides"

Last modified June 18, 2022: attributes descriptions with links (25b13ac)