Ruby and dot


(Bil Kleb) #1

Hello,

Is there an “official” Ruby/dot package? I can’t find it in the RAA
and searching for “dot” on blade is pointless due to anti-spamming email
address spellings.

dot is part of AT&T’s open source graph drawing software which RDoc uses
to draw class diagrams (see http://www.research.att.com/sw/tools/graphviz/).

Thanks,

···


Bil Kleb
NASA Langley Research Center
Hampton, Virginia, USA


(HAL 9000) #2

http://www.research.att.com/sw/tools/graphviz/).

You might look at the internals of rdoc… it uses
dot to draw class diagrams if you use the --diagram
option. I haven’t looked at it myself.

All I know.

Hal Fulton

···

----- Original Message -----
From: “Bil Kleb” W.L.Kleb@larc.nasa.gov
To: “ruby-talk ML” ruby-talk@ruby-lang.org
Sent: Monday, June 24, 2002 7:53 AM
Subject: Ruby and dot

Is there an “official” Ruby/dot package? I can’t find it in the RAA
and searching for “dot” on blade is pointless due to anti-spamming email
address spellings.

dot is part of AT&T’s open source graph drawing software which RDoc uses
to draw class diagrams (see


(Massimiliano Mirra) #3

Look in the RAA for graphr by Robert Feldt, or if you have rapt
just type `rapt install graphr’ and get it installed.

Massimiliano

···

On Mon, Jun 24, 2002 at 09:53:21PM +0900, Bil Kleb wrote:

Is there an “official” Ruby/dot package? I can’t find it in the RAA
and searching for “dot” on blade is pointless due to anti-spamming email
address spellings.


(Farrel Lifson) #4

Hey,

rdoc (http://rdoc.sourceforge.net) includes a dot.rb package which
allows you to construct a graph and then write the graph in dot format
out to file. I’ve used it and it’s quite easy to use. I’m not sure if
you can obtain it seperately from rdoc though.

Farrel Lifson


(Tobi Reif) #5

Bil Kleb wrote:

Is there an “official” Ruby/dot package?

What exactly are you looking for?

In a small example [1], I used Robert Feldt’s GraphR [2]; more links and
info on www.graphviz.org.

In many cases, you can simply generated dot files with Ruby.

Tobi

P.S.

… or with XSLT :slight_smile:
http://www.pinkjuice.com/SVG/links/

[1] http://www.pinkjuice.com/howto/RubySVG/examples.xhtml#examples_trees
[2] http://rockit.sourceforge.net/subprojects/graphr/

···


http://www.pinkjuice.com/


(Bil Kleb) #6

Farrel Lifson wrote:

I’m not sure if you can obtain it seperately from rdoc though.

That’s the crux of my question…

···


Bil


(Bil Kleb) #7

Tobias Reif wrote:

What exactly are you looking for?

GraphR is probably it…

Thanks,

···


Bil


(Tobi Reif) #8

Bil Kleb wrote:

GraphR is probably it…

It depends on what you’re doing, but in some cases it’s definitely
better to generate the dotfiles directly. You’ll have full controll and
all the features.

Tobi

···


http://www.pinkjuice.com/


(Horst) #9

“Bil Kleb” W.L.Kleb@larc.nasa.gov schrieb im Newsbeitrag news:3D1780EB.41CF4C20@LaRC.NASA.Gov

Tobias Reif wrote:

What exactly are you looking for?

GraphR is probably it…

Perhaps you might also have a look at RGL (Ruby Graph Library) which also uses dot.rb from rdoc to
draw graphs:

http://www.ruby-lang.org/en/raa-list.rhtml?name=RGL or
http://www.hduchene.de/ruby/rgl/doc/

Horst


(Alia Amin) #10

for drawing/manipulating/plotting graph/images/diagram there is some
options at the RAA under Graphics.
However, (for some reason ?) Graphr and RGL is in RAA under Datastructure.

hth,
alia

Horst Duchene wrote:

···

“Bil Kleb” W.L.Kleb@larc.nasa.gov schrieb im Newsbeitrag news:3D1780EB.41CF4C20@LaRC.NASA.Gov

Tobias Reif wrote:

What exactly are you looking for?

GraphR is probably it…