diff options
author | Jarrod Millman <jarrod.millman@gmail.com> | 2020-10-06 10:22:41 -0700 |
---|---|---|
committer | Jarrod Millman <jarrod.millman@gmail.com> | 2020-10-06 12:11:32 -0700 |
commit | 735e6d856b81989cc12dfa30d8cd8e2ddb7dcead (patch) | |
tree | d82c1413052f6fc45db9e856716e69d32e2b038a /networkx/convert_matrix.py | |
parent | 3d06eda1ab79b851599edac9e5b58327545c078e (diff) | |
download | networkx-735e6d856b81989cc12dfa30d8cd8e2ddb7dcead.tar.gz |
Format w/ black==20.8b1
Diffstat (limited to 'networkx/convert_matrix.py')
-rw-r--r-- | networkx/convert_matrix.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/networkx/convert_matrix.py b/networkx/convert_matrix.py index bb305195..a334c655 100644 --- a/networkx/convert_matrix.py +++ b/networkx/convert_matrix.py @@ -896,10 +896,7 @@ def to_scipy_sparse_matrix(G, nodelist=None, dtype=None, weight="weight", format index = dict(zip(nodelist, range(nlen))) coefficients = zip( - *( - (index[u], index[v], wt) - for u, v, wt in G.edges(data=weight, default=1) - ) + *((index[u], index[v], wt) for u, v, wt in G.edges(data=weight, default=1)) ) try: row, col, data = coefficients |