Skip to content

Commit 0a7b85e

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent a6ac5ac commit 0a7b85e

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

graphs/push_relabel.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,7 @@ def max_flow(self, source: int, sink: int) -> int:
8181
self.excess[source] -= cap
8282

8383
# Process vertices with excess
84-
active = [
85-
v for v in range(n) if v not in (source, sink) and self.excess[v] > 0
86-
]
84+
active = [v for v in range(n) if v not in (source, sink) and self.excess[v] > 0]
8785

8886
while active:
8987
u = active.pop()

0 commit comments

Comments
 (0)