Here are some guidelines about how to start playing around with graphviz-java-api.
brew install graphviz
For instructions on how to do it for your system go to http://graphviz.org/Download..php
You will need Eclipse, so go for it.
Then, import the graphviz-java-api project into your Workspace and run it!