I definitively need some help here!
Later on, the graph should receive it’s data out of a database, but right now I’m already struggling on getting the graph drawn by RGL in a static way. I’m not able to decorate the nodes and edges in RBL in this way.
Has anyone already done this? Is there a better way to get graphs painted in ruby?
I gave it up and implemented the graph by myself. I have a node- and a edge-object. They have their DOT-decoration inside a string-variable. As soon as I want the graph painted I just loop over every node/edge and write out the DOT-code to a file. Then I call the DOT-command on my shell and have it paint me PNG out of the file I made. It’s a dirty hack, but it works. :-)