Layouts differ when using windows vs web

Complete newbie here!

Why does my windows command

dot -Kfdp -n -Tjpeg -Gdpi=300 -O

give different result than what is rendered here in forums ?

What does it give you and what do you expect?

1 Like

FOr example
dot -Kfdp -n -Tjpeg -Gdpi=300 -O
on below code gives

[dot]digraph{ splines=ortho p [label= "" width=0.01 height=0.01 shape=point fixedsize=true] a -> p [arrowhead=none] p -> 1 p -> 2 }[/dot]

and on web it displays this

Edit: I don’t know why the output is not automatically displayed here

Your first graph is using layout=fdp, your second graph is using layout=dot. If you change the layout on the web from dot to fdp the graphs look the same.

2 Likes