tags:

views:

55

answers:

1

I have hash object, that structure looks similar to this:

{:category1 => 
 {:subcategory1 => 
  [ 
   {:article => "some article", :date => "2010-04-04"},
   ...
  ],
  :subc2 => [...] 
 },
 :category2 => {...},
 ...
}

How can I visualize it with graph in ruby?

Is there a simple method/gem/lib that convert this Hash to DOT?

A: 

I believe you could use the ruby-graphviz gem for this sort of visualization.

Greg Campbell