pydot / pydot-ng

Python interface to Graphviz's Dot language compatible with Python 2 nad Python 3
MIT License
23 stars 10 forks source link

[86] pydot can not print graph with special characters #22

Open prmtl opened 9 years ago

prmtl commented 9 years ago

Reported by PengYu...@gmail.com, 2013-11-30T04:00:59Z

The following code shows that pydot can't print graph whose nodes consist of special characters. Is it a bug of pydot?

import pydot

graph = pydot.Dot(graph_type='graph')
graph.add_edge(pydot.Edge("<a>", "<b>"))
graph.add_edge(pydot.Edge("<a>", "<c>"))
graph.write_png('main1.png')

From: https://code.google.com/p/pydot/issues/detail?id=86