samehead attibute in Graphviz python

67 views Asked by At

I'm trying to make the edges that share the same manager merge with each other. however, when I set the parameters for the attribute it doesn't apply to the org chart created using the code.

G.add_edge(manager, name, penwidth=.5, color="#2C3539", arrowhead="none", ltail=manager, samehead=name) I'm using the above code to merge the edges together, please tell me if there is an issue with it. thank you

1

There are 1 answers

1
sroush On

It seems that you want the graph-level attribute concentrate ( https://graphviz.org/docs/attrs/concentrate/)