TL DR
Since this problem is most likely caused by an unsuccessful upgrade or installation, the easiest solution is to completely uninstall and then install Graphviz.
Long version
Check supported formats
The first thing to do is to see which formats support the dots . Following the instructions in the manual, this is achieved by running:
dot -T?
-
Format: "?" not recognized. Use one of: bmp canon cgimage cmap cmapx cmapx_np dot
eps exr fig gif gv icns ico imap imap_np ismap jp2 jpe jpeg jpg pct pdf pic pict
plain plain-ext png pov ps ps2 psd sgi svg svgz tga tif tiff tk vml vmlz xdot
xdot1.2 xdot1.4
ps .
, config ( /usr/local/Cellar/graphviz/2.38.0/lib/graphviz/config6).
, grep ps, , . , .
, dot -c, .
, Graphviz Forum .