Graphviz Node Shapes
Graphviz sets a node's appearance with the shape attribute, e.g. a [shape=box]. The table below lists every built-in Graphviz node shape with a live rendered preview and the exact DOT code you can copy into the online Graphviz editor.
| Node shape | Example | Graphviz code |
|---|---|---|
| box | ||
| ellipse | ||
| circle | ||
| diamond | ||
| plaintext | ||
| point | ||
| polygon | ||
| rect | ||
| record | ||
| Mrecord | ||
| square | ||
| star | ||
| none | ||
| trapezium | ||
| triangle | ||
| house | ||
| invhouse | ||
| parallelogram | ||
| hexagon | ||
| septagon | ||
| octagon | ||
| doublecircle | ||
| doubleoctagon | ||
| tripleoctagon | ||
| invtriangle | ||
| Mdiamond | ||
| Msquare | ||
| Mcircle | ||
| note | ||
| tab | ||
| folder | ||
| box3d | ||
| component | ||
| promoter | ||
| cds | ||
| terminator | ||
| utr | ||
| primersite | ||
| restrictionsite | ||
| fivepoverhang | ||
| threepoverhang | ||
| noverhang | ||
| assembly | ||
| signature | ||
| insulator | ||
| ribosite | ||
| rnastab | ||
| proteasesite | ||
| proteinstab | ||
| rpromoter | ||
| larrow | ||
| rarrow | ||
| lpromoter |
See also
How to Connect Graphviz Edges to Node Sides and Table PortsHow to Align Graphviz Nodes on the Same RankHow to Draw Edges Between Graphviz ClustersHow to Add Multiline Labels in GraphvizGraphviz Online EditorGraphviz ExamplesGraphviz in PythonCreate a Decision Tree in GraphvizGraphviz CheatsheetInteractive Graphviz TutorialGraphviz vs MermaidJS