Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed API call to networkx (#241)
networkx.write_dot -> networkx.drawing.nx_agraph.write_dot
  • Loading branch information
ri0t authored and prologic committed Jun 20, 2018
1 parent 5dae195 commit 30c9eba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion circuits/tools/__init__.py
Expand Up @@ -110,7 +110,7 @@ def graph(x, name=None):
plt.axis("off")

plt.savefig("{0:s}.png".format(name or x.name))
networkx.write_dot(g, "{0:s}.dot".format(name or x.name))
networkx.drawing.nx_agraph.write_dot(g, "{0:s}.dot".format(name or x.name))

plt.clf()

Expand Down

0 comments on commit 30c9eba

Please sign in to comment.