Skip to content

Commit

Permalink
Fix scipy 1.14 incompatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbowly committed Jun 26, 2024
1 parent 5234b1a commit b019e9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gurobi_optimods/min_cut.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,11 @@ def _min_cut_scipy(G, source, sink, create_env):
return MinCutResult(0.0, (set(), set()), set())

queue = [source]
G = G.tocsr()
while len(queue) > 0:
node = queue.pop()
p1.add(node)
row = G.getrow(node)
row = G[[node]]
# Add successors of `node` that are not in the cutset
queue.extend(
[
Expand Down

0 comments on commit b019e9a

Please sign in to comment.