Skip to content

Commit a72809e

Browse files
authored
Use sparse matrix in push_relabel (#42)
1 parent a5b6516 commit a72809e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/push_relabel.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function push_relabel end
1616
) where {T}
1717

1818
n = lg.nv(residual_graph)
19-
flow_matrix = zeros(T, n, n)
19+
flow_matrix = spzeros(T, n, n)
2020

2121
height = zeros(Int, n)
2222
height[source] = n

0 commit comments

Comments
 (0)