|
This post originated from an RSS feed registered with Ruby Buzz
by Ryan Davis.
|
Original Post: Stoopid Simple Graphing Library
Feed Title: Polishing Ruby
Feed URL: http://blog.zenspider.com/index.rdf
Feed Description: Musings on Ruby and the Ruby Community...
|
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Ryan Davis
Latest Posts From Polishing Ruby
|
|
At Eric's behest, I'm releasing the code that I used to generate the ABC colored graphs that I posted about earlier. It allows for quick and dirty (I prefer the term "clean") graphs through Graphviz's dot language.
graph = Graph.new
graph["from"] << "to"
puts graph.to_s
when processed becomes:
It has other bells and whistles, when a plain graph just won't do, but the emphasis is on simplicity and getting things done. Best of all, it is only 65 lines long.
Code after the cut...
Read: Stoopid Simple Graphing Library