glejeune / Ruby-Graphviz

[MIRROR] Ruby interface to the GraphViz graphing tool
https://gitlab.com/glejeune/ruby-graphviz
Other
608 stars 116 forks source link

sametail and samehead not working? #132

Closed alxx closed 6 years ago

alxx commented 6 years ago

I can't seem to get sametail or samehead working.

I've included GraphViz::options( :use => "dot" ) and I'm also using use: 'dot' in the output statement.

I'm generating two edges connecting two nodes to the same third node. I'm using the samehead attribute with the hardcoded value "x" and the two edges still have different heads.

g.add_edges a, c, color: '#b3c4cd', samehead: "x"
g.add_edges b, c, color: '#b3c4cd', samehead: "x"

screen shot 2017-11-18 at 18 41 35

Am I doing something wrong?

alxx commented 6 years ago

Hi, it's me again. I discovered the problem: sametail and samehead don't work with ortho splines. I've used spline splines and then it worked, except I don't like those :)