-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename edge_list
arg with edgelist
to be compatible with networkx
#341
Comments
This was my fault when I ported the mpl drawer from networkx to retworkx in #304 I explicitly changed |
I see. |
Ok sure, I'll push another PR updating the |
This commit adds a section to the retworkx for networkx users guide on visualizations. This is important especially for the ``mpl_draw`` function since it's mostly identical to the ``networkx_drawer`` function but there are some key differences to keep in mind. This commit also makes small change to the graphviz drawer, the name of the function is renamed from `pydot_draw` to `graphviz_draw` and the Python module is renamed from `pydot` to `graphviz`. This was done to be more descriptive as graphviz is the backend not pydot. It also makes it easier to migrate away from pydot in the future if we needed to since the key piece is using graphviz not a particular python interface to it. Fixes Qiskit#341
This commit adds a section to the retworkx for networkx users guide on visualizations. This is important especially for the ``mpl_draw`` function since it's mostly identical to the ``networkx_drawer`` function but there are some key differences to keep in mind. This commit also makes small change to the graphviz drawer, the name of the function is renamed from `pydot_draw` to `graphviz_draw` and the Python module is renamed from `pydot` to `graphviz`. This was done to be more descriptive as graphviz is the backend not pydot. It also makes it easier to migrate away from pydot in the future if we needed to since the key piece is using graphviz not a particular python interface to it. Fixes Qiskit#341
* Add visualization to retworkx for networkx users guide This commit adds a section to the retworkx for networkx users guide on visualizations. This is important especially for the ``mpl_draw`` function since it's mostly identical to the ``networkx_drawer`` function but there are some key differences to keep in mind. This commit also makes small change to the graphviz drawer, the name of the function is renamed from `pydot_draw` to `graphviz_draw` and the Python module is renamed from `pydot` to `graphviz`. This was done to be more descriptive as graphviz is the backend not pydot. It also makes it easier to migrate away from pydot in the future if we needed to since the key piece is using graphviz not a particular python interface to it. Fixes #341 * Update release note too * Rename optional target to graphviz
What is the expected enhancement?
mpl_draw
has an argumentedge_list
https://github.com/Qiskit/retworkx/blob/885f2de1588dc983591563f94b2ddcada443b3b2/retworkx/visualization/matplotlib.py#L101The same argument has name
edgelist
in networkxhttps://networkx.org/documentation/stable/reference/generated/networkx.drawing.nx_pylab.draw_networkx_edges.html
Related to qiskit-community/qiskit-optimization#150
The text was updated successfully, but these errors were encountered: