@@ -36,7 +36,7 @@ function push_relabel end
3636 sizehint! (Q, n)
3737
3838
39- for v in lg. out_neighbors (residual_graph, source)
39+ for v in lg. outneighbors (residual_graph, source)
4040 push_flow! (residual_graph, source, v, capacity_matrix, flow_matrix, excess, height, active, Q)
4141 end
4242
@@ -46,7 +46,7 @@ function push_relabel end
4646 discharge! (residual_graph, v, capacity_matrix, flow_matrix, excess, height, active, count, Q)
4747 end
4848
49- return sum ([flow_matrix[v, target] for v in lg. in_neighbors (residual_graph, target)]), flow_matrix
49+ return sum ([flow_matrix[v, target] for v in lg. inneighbors (residual_graph, target)]), flow_matrix
5050end
5151
5252"""
@@ -160,7 +160,7 @@ function relabel! end
160160 n = lg. nv (residual_graph)
161161 count[height[v] + 1 ] -= 1
162162 height[v] = 2 * n
163- for to in lg. out_neighbors (residual_graph, v)
163+ for to in lg. outneighbors (residual_graph, v)
164164 if capacity_matrix[v, to] > flow_matrix[v, to]
165165 height[v] = min (height[v], height[to] + 1 )
166166 end
@@ -189,7 +189,7 @@ function discharge! end
189189 count:: AbstractVector{Int} ,
190190 Q:: AbstractVector # FIFO queue
191191 )
192- for to in lg. out_neighbors (residual_graph, v)
192+ for to in lg. outneighbors (residual_graph, v)
193193 excess[v] == 0 && break
194194 push_flow! (residual_graph, v, to, capacity_matrix, flow_matrix, excess, height, active, Q)
195195 end
0 commit comments