Search code examples
graphviz

how to start graphviz on macosx after installing with home-brew?


dave$ brew reinstall graphviz
==> Reinstalling graphviz 
==> Downloading https://homebrew.bintray.com/bottles/graphviz-2.40.1_1.high_sier
Already downloaded: /Users/dave/Library/Caches/Homebrew/downloads/2bf5346e72953a60aa26af766451ff7cf1439f4c020c0dc24ee5db10b9795ade--graphviz-2.40.1_1.high_sierra.bottle.tar.gz
==> Pouring graphviz-2.40.1_1.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/graphviz/2.40.1_1: 500 files, 11.3MB

I installed graphviz with homebrew. How do I start it after that?


Solution

  • You don't. Graphviz is a tool not a GUI.

    To test it you can do something simple like create a simple graph:

    digraph "a" {
    a -> b
    }
    

    and then run dot with it.

    $ dot -Tpng -otest.png test.dot
    $ open test.png
    

    enter image description here