somewhat daily mutterings

/Programming/Projects/Gemcast New Dependency Graph, Produced with Dot and Graphviz

You may be aware that I recently was turned on to Graphviz and the 'dot' graph representation language (see my SpringViz page). Well, tonight I turned my attention to graphing the dependencies among the Ruby modules that make up gemcast (the weblog engine that I wrote for this site).

gemcast Dependency Graph, rendered by Graphviz

For now, I'm using a simple Unix script to generate the dot file (that's the way I almost always start this sort of thing, and it literally took me about 5 minutes to put together), but I'll convert it to Ruby soon in order to add more powerful rendering. Here's the script, in case you're interested:

1 echo "digraph {"
2 echo "  node [ shape = box ]"
3 grep require *.rb | sed 's/\:/ /g;s/"//g;s/\.rb//g;s/require/->/g'
4 echo "}"

Posted: Sun Oct 03 17:10:05 -0700 2004

Thanks for visiting! Send comments to Mike Thomas.

Site 
Meter