From: Phlip Date: 2002-09-23T21:16:09+09:00 Subject: rgl can't produce disconnected graphs [posted and mailed to package author] Rubies: I downloaded rgl-0.2.1 from http://sourceforge.net/projects/rgl/ Being a rather simple person, I decided to start by producing the simplest graph I could possibly make; a graph with no vertices and no edges. This proved trivial, so I decided to go to the next level: A graph with one vertex and no edges: dg=RGL::DirectedAdjacencyGraph.new #[1,2 ,2,3 ,2,4, 4,5, 6,4, 1,6] dg.add_vertex('yo') dg.write_to_graphic_file('jpg') system('kview graph.jpg &') This produces a graph containing a title, and nothing else. There is no single vertex. (Graphviz, the back-end for 'write_to_graphic_file', knows to produce a single vertex here.) RGL either has a bug, or its author thinks single vertices are not graphs. In the above example, if we uncomment the "[1,2 ,2,3 ..." stuff and take out the .new, we get a graph with 6 vertices. But the 7th is missing. -- Phlip http://www.greencheese.org/YaAw -- Proud victim of the dreaded boomerang effect --