W3cubDocs

/Graphviz

shape

Sets the shape of a node

type: shape, default: ellipse

digraph {
    "pentagon" [shape="pentagon"];
    "hexagon" [shape="hexagon"];
}
Valid on:
  • Nodes

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