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
After cloning/downloading the API project you will need Eclipse to open it, so go for it.
Then, import it into your Workspace and have fun.