pydotplus
pydotplus copied to clipboard
Automatially quote node names containing a colon
Hi,
if a node name contains a colon, then an interesting thing happens:
>>> g = pydot.Dot()
>>> g.add_node(pydot.Node('foo:bar'))
>>> print(g.to_string())
digraph G {
foo;
}
As you can see, the node is now named foo
and not foo:bar
. I can see elsewhere that this might be called a "feature" of pydot. Unfortunately, one of the more popular users of pydotplus, networkx, sees this as a bug instead:
https://github.com/networkx/networkx/issues/2050
I want to clarify with you what exactly is the case from your point of view? Is this a pydotplus bug or a pydotplus feature? If the former, can it get fixed?