I am using networkx
library for reading and writing dot
graphs. According to the documentation here, write_dot()
method should be accessible, however when I try,
>>> import networkx
>>> networkx.write_dot(graph,fileName)
I get the following error.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'write_dot'
How can I solve this?