Skip to content

Commit

Permalink
fixed return type in _calculate_shortest_paths_subset
Browse files Browse the repository at this point in the history
  • Loading branch information
Schefflera-Arboricola committed Feb 6, 2024
1 parent d32643a commit 08bfe6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nx_parallel/algorithms/shortest_paths/weighted.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def _calculate_shortest_paths_subset(source):
def all_pairs_bellman_ford_path_chunk(G, weight="weight"):
def _calculate_shortest_paths_subset(nodes):
for source in nodes:
return (source, single_source_bellman_ford_path(G, source, weight=weight))
yield (source, single_source_bellman_ford_path(G, source, weight=weight))

if hasattr(G, "graph_object"):
G = G.graph_object
Expand Down

0 comments on commit 08bfe6f

Please sign in to comment.