Skip to content

Node shapes

Engine
dot
Command, both sides
dot -Kdot -Tsvg input.gv
Input
tests/fixtures/shapes.gv · 840 bytes
Features
shapespolygon
Result
identical on macOSidentical under portable math
Comparing…
C Graphviz 16.1.0 output, cyan plategraphviz-pure, native macOS build output, magenta plate

C onlyport onlyboth: in register

Input

shapes.gv
digraph G {
a [shape=box]
b [shape=polygon]
c [shape=ellipse]
d [shape=circle]
e [shape=point]
f [shape=egg]
g [shape=triangle]
h [shape=plaintext]
i [shape=diamond]
j [shape=trapezium]
k [shape=parallelogram]
l [shape=house]
m [shape=pentagon]
n [shape=hexagon]
o [shape=septagon]
p [shape=octagon]
q [shape=doublecircle]
r [shape=doubleoctagon]
s [shape=tripleoctagon]
t [shape=invtriangle]
u [shape=invtrapezium]
v [shape=invhouse]
w [shape=Mdiamond]
x [shape=Msquare]
y [shape=Mcircle]
z [shape=rect]
1 [shape=rectangle]
2 [shape=none]
3 [shape=note]
4 [shape=tab]
5 [shape=box3d]
6 [shape=component]
7 [shape=folder]
a -> b -> c -> d -> e -> f -> g
h -> i -> j -> k -> l -> m -> n
o -> p -> q -> r -> s -> t -> u
v -> w -> x -> y -> z -> 1 -> 2
3 -> 4 -> 5 -> 6 -> 7
}

Files

FileBytesSHA-256
input.gv840
c.svg C21,943bdd24a6b9ea60ed29fc7bc193f71b357d81118612df3f801dd9c5eb8da1ffab0
rust.svg Rust21,9549e00e699a578c39a7829dd6dabb39c9b17f26c0fa5eac60fe28b91bbd5deebd6

The two hashes differ even when the outputs are identical, because each file keeps its own generator comment. Made by scripts/site-samples.sh.