summaryrefslogtreecommitdiff
path: root/examples/drawing/plot_degree.py
diff options
context:
space:
mode:
authorJarrod Millman <jarrod.millman@gmail.com>2021-10-23 15:37:48 -0700
committerGitHub <noreply@github.com>2021-10-23 15:37:48 -0700
commit0c503e31ba0062dc9a4ed47c380481aa8d6978c8 (patch)
treeef389b7ba52dec39941978824c7e0e833f17ab9e /examples/drawing/plot_degree.py
parent27d362b9a752adf38d7db1828a48f50bb41c84bd (diff)
downloadnetworkx-0c503e31ba0062dc9a4ed47c380481aa8d6978c8.tar.gz
Drop Py37 (#5143)
* Drop Py37 * XML serialization issue * Use math.comb Co-authored-by: Simone Gasperini <simone.gasperini2@studio.unibo.it> * Run pyupgrade --py38-plus * Run black * More documentation * Deprecate euclidean Co-authored-by: Simone Gasperini <simone.gasperini2@studio.unibo.it>
Diffstat (limited to 'examples/drawing/plot_degree.py')
-rw-r--r--examples/drawing/plot_degree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/drawing/plot_degree.py b/examples/drawing/plot_degree.py
index 6fc5994b..9d7abe4a 100644
--- a/examples/drawing/plot_degree.py
+++ b/examples/drawing/plot_degree.py
@@ -19,7 +19,7 @@ import matplotlib.pyplot as plt
G = nx.gnp_random_graph(100, 0.02, seed=10374196)
-degree_sequence = sorted([d for n, d in G.degree()], reverse=True)
+degree_sequence = sorted((d for n, d in G.degree()), reverse=True)
dmax = max(degree_sequence)
fig = plt.figure("Degree of a random graph", figsize=(8, 8))