Drawing Graphs(Graph theory) with Cocoa

Update: I am working on a little app that makes it convenient to use dot, neato, and twopi tools that come with GraphViz.

There is the popular GraphViz library and associated tools for generating graphs in a lot of environments. However, to have a little bit of fun, we can start with some code provided by Aaron Hillegass on his Big Nerd Ranch weblog(scroll down to the bottom). I think the main purpose of his code is actually not to explain how to draw graphs but to demonstrate some of the nice features of PyObjC.

Tip: You should actually create a fresh Xcode project based on Aaron’s source code if you don’t want to mess with PyObjC.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s