pydotplus icon indicating copy to clipboard operation
pydotplus copied to clipboard

Automatially quote node names containing a colon

Open josch opened this issue 8 years ago • 0 comments

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?

josch avatar Apr 01 '16 05:04 josch