Ruby-Graphviz
Ruby-Graphviz copied to clipboard
Changes in 1.0.9 breaks functionality
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
Could you give me a more complete example ?
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 : gregoire dot lejeune at free dot fr