From b5902241b6115127d1bbec6db464e11675e7aa18 Mon Sep 17 00:00:00 2001 From: Erik Welch Date: Fri, 25 Oct 2024 04:08:51 -0700 Subject: [PATCH] Comment to indicate difference, since some code is repeated --- .../nx_cugraph/algorithms/shortest_paths/unweighted.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/nx-cugraph/nx_cugraph/algorithms/shortest_paths/unweighted.py b/python/nx-cugraph/nx_cugraph/algorithms/shortest_paths/unweighted.py index 1193082352..1e4de722e4 100644 --- a/python/nx-cugraph/nx_cugraph/algorithms/shortest_paths/unweighted.py +++ b/python/nx-cugraph/nx_cugraph/algorithms/shortest_paths/unweighted.py @@ -221,7 +221,7 @@ def __getitem__(self, key): key = self._key_to_pred[key] val = self._data[key] for key in reversed(stack): - val = self._data[key] = [*val, key] + val = self._data[key] = [*val, key] # Switched in ReversePathMapping return val def __iter__(self): @@ -251,7 +251,7 @@ def __getitem__(self, key): key = self._key_to_pred[key] val = self._data[key] for key in reversed(stack): - val = self._data[key] = [key, *val] + val = self._data[key] = [key, *val] # Switched in PathMapping return val def __iter__(self):