Skip to content

Commit

Permalink
fix dijkstra
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosEpia committed Apr 16, 2024
1 parent f34b4d2 commit f1a5a06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etrago/cluster/spatial.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ def dijkstras_algorithm(buses, connections, medoid_idx, cpu_cores):
ppathss = list(product(o_buses, c_buses))

# graph creation
edges = [(row.bus0, row.bus1, row.x, ix) for ix, row in connections.iterrows()]
edges = [(row.bus0, row.bus1, row.length, ix) for ix, row in connections.iterrows()]
M = graph_from_edges(edges)

# processor count
Expand Down

0 comments on commit f1a5a06

Please sign in to comment.