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.
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.
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.
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')