sides

type: int, default: 4, minimum: 0

Number of sides when shape=polygon.

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
Last modified June 16, 2021 : Add an example for sides attr (2ebdec6)