Graphviz can be obtained via apt:
$ sudo apt-get install graphviz
After the installation is complete, note that the way for verification is by using the dot command:
$ dot -V
dot - graphviz version 2.38.0 (20140413.2041)
We will use the Python wrapper for Graphviz, so let's install it now while we are at it:
$ sudo pip install graphviz
$ sudo pip3 install graphviz
Let's take a look at how to use the software.