Ruby-Graphviz icon indicating copy to clipboard operation
Ruby-Graphviz copied to clipboard

Changes in 1.0.9 breaks functionality

Open SBeaver opened this issue 11 years ago • 3 comments

When outputting my graph (using graphviz-dot, output as svg) dot crashes and doesn't produce a graph. Everything works in 1.0.8.

Using windows 32-bit ruby 2.0.0. Graphviz 2.30.1

edit:

Here is an example of the code that creates an incorrect graph:

graph.add_edges(graph_reference_table[src_path + condition], graph_reference_table[statement_home + "()"], :lhead=>graph_reference_table[statement_home], :color=>"purple", :style=>"dashed", :constraint=>"false")

The two nodes are references to two nodes. The lhead is a reference to a cluster graph from which to start the head of the edge. This works in 1.0.8, and I think this was the suggested way of drawing edges from node to a cluster/graph.

If I remove the lhead attribute this is drawn in in 1.0.9 also.

I should add, the graph in question has compound=true set

SBeaver avatar May 06 '13 18:05 SBeaver

Could you give me a more complete example ?

glejeune avatar May 16 '13 10:05 glejeune

I have a full example I put together for you that I can send if you give me an email address. It contains artifacts from sourcecode not owned by me so I can't publish it here.

edit: I sent it to your email address for your website.

SBeaver avatar May 16 '13 11:05 SBeaver

@SBeaver : gregoire dot lejeune at free dot fr

glejeune avatar May 16 '13 12:05 glejeune