RAA - graphviz_r/0.5.0

graphviz_r / 0.5.0

Short description: Graphviz wrapper for Ruby, include Rails plugin
Category: Library/Graphics
Status: beta
Created: 2007-02-16 04:10:56 GMT
Last update: 2007-03-14 17:36:42 GMT
Owner: technohippy (Projects of this owner)
Homepage: http://blog.technohippy.net/pages/products/graphviz_r/en
Download: http://rubyforge.org/frs/download.php/18331/GraphvizR-0.5.0.gem
License: Ruby's
Dependency:
None
Description:
GraphvizR is graphviz adapter for Ruby, and it can:

  * generate a graphviz dot file,
  * generate an image file by means of utilizing graphviz,
  * interprete rdot file and generate an image file,
  * and, generate a graph image file in rails application as a rails plugin.

Sample

  gvr = GraphvizR.new 'sample'
  gvr.cluster0 do |c0|
    c0.graph [:color => :blue, :label => 'area 0', :style => :bold]
    c0.a >> c0.b
    c0.a >> c0.c
  end
  gvr.cluster1 do |c1|
    c1.graph [:fillcolor => '#cc9966', :label => 'area 1', :style => :filled]
    c1.d >> c1.e
    c1.d >> c1.f
  end
  (gvr.a >> gvr.f) [:lhead => :cluster1, :ltail => :cluster0]
  gvr.b >> gvr.d
  (gvr.c >> gvr.d) [:ltail => :cluster0]
  (gvr.c >> gvr.f) [:lhead => :cluster1]
  gvr.to_dot
Versions: [0.5.0 (2007-03-14)] [0.2.0 (2007-02-16)]

Edit this project (for project owner)

back to RAA top