It's a hassle[1] to use 'open' on Mac to open dot files since it requires an application be installed. Better try commandline tools first, and resort to 'open' as the backup.
[1] brew does not provide graphviz app anymore.
https://github.com/Homebrew/homebrew-core/issues/31510