xflr6 / graphviz

Simple Python interface for Graphviz
https://graphviz.readthedocs.io
MIT License
1.59k stars 209 forks source link

Any example of samehead or sametail would help #204

Closed dlamblin closed 10 months ago

dlamblin commented 10 months ago

I don't quite see how edges can get samehead or sametail applied.

xflr6 commented 10 months ago

Hi, caveat that this might be better be directed at upstream https://graphviz.org/documentation/ (repo).

Does the example in https://stackoverflow.com/a/5442607 maybe help?

dlamblin commented 10 months ago

Thanks I did find adding it in the attributes to edge worked, but only after I stopped using the ortho curvestyle. It seems upstream has this bug: https://gitlab.com/graphviz/graphviz/-/issues/1856 it affects samehead, sametail, and headport and tailport too. One thing I noticed was that lhead and ltail for clipping to the outside of a cluster was not working in the produced dot output from here because while there's _head and _head_static there's no _head_compound or something to apply compound=true with.