Setting arrowType to normal is not producing the expected result

In python I copied a graph using shallow copy G=Graph(myG, arrowType=“normal”).

myG has normal arrow head but the copy did not… it had a “none” arrowType (no symbol at the end of the arrow)

I also tried, G.graph_attr[“arrowType”] = “normal”

(also tried arrowhead=“normal” in creation of the graph and in setting attributes)

A deep copy will produce the arrowType of the original graph, but the original graph has too much extraneous information that I don’t want to replicate.

Any suggestions?

What is your import statement, which library are you getting Graph from?

import graphviz
it was installed with pip install graphviz

any recommended code to instantiate this graph as a shallow copy and have it assigned “normal” arrowhead? maybe I’m just not using the right code for instantiation.

Ok you should go ask over at
https://github.com/xflr6/graphviz

We don’t maintain the graphviz python pip library here.

Thanks. I thought this is just general knowledge question, not a library maintenance issue. I imagine many people have changed this and other attributes of graphviz graphs. I was just wondering about the syntax of how it might be done in python.

I think the ambiguity Mark is pointing to is that the Graphviz project maintains a completely different Python module to the one you are using, called gv. If you ask about this kind of thing here, you are likely to get answers of how to do it in the gv Python module, whereas you probably want answers of how to do this in the graphviz Python module.

Yeah I think we just don’t know much about the graphviz module here. Could be wrong; maybe someone here has used it.

While I do not use this library, it looks like you might be setting a graph-level attribute, while it probably should be XXX.attr('edge', arrowhead='normal')

thank you very much for the explanation.