8000 Fix URL in comment around origin of matplotlib drawer (#1051) · Qiskit/rustworkx@75dbca9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 75dbca9

Browse files
Fix URL in comment around origin of matplotlib drawer (#1051)
The rustworkx mpl_draw() function was originally adapted from networkx's matplotlib based drawer and heavily modified to work with rustworkx and also conform more to rustworkx's interface style. Attribution to the original source and the license terms of the original networkx code are present in a comment at a top of the module. This port was originally done when rustworkx was still called retworkx. As part of the name migration in #644 an overzealous find/replace broke the URL to the permalink to the original networkx source code that the mpl_draw() function was based on. This commit corrects this oversight so that the link correctly resolves to the proper url. Co-authored-by: Ivan Carvalho <8753214+IvanIsCoding@users.noreply.github.com>
1 parent 24d4880 commit 75dbca9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rustworkx/visualization/matplotlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
# This code is forked from networkx's networkx_pylab.py module and adapted to
4646
# work with rustworkx instead. The original source can be found at:
4747
#
48-
# https://github.com/rustworkx/rustworkx/blob/80b1afa2ae50314a8312998c214a8c1a356adcf1/rustworkx/drawing/rustworkx_pylab.py
48+
# https://github.com/networkx/networkx/blob/80b1afa2ae50314a8312998c214a8c1a356adcf1/networkx/drawing/nx_pylab.py
4949

5050
"""Draw a rustworkx graph with matplotlib."""
5151

0 commit comments

Comments
 (0)
0