Skip to content

Commit 8c968b0

Browse files
committed
Revert "add doctest"
This reverts commit e85f71a.
1 parent 45ea549 commit 8c968b0

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

networking_flow/dinic.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -97,20 +97,6 @@ def dfs(self, u: int, sink: int, flow: int, ptr: list) -> int:
9797
def max_flow(self, source: int, sink: int) -> int:
9898
"""
9999
Computes the maximum flow from source to sink.
100-
101-
>>> dinic = Dinic(6)
102-
>>> dinic.add_edge(0, 1, 16)
103-
>>> dinic.add_edge(0, 2, 13)
104-
>>> dinic.add_edge(1, 2, 10)
105-
>>> dinic.add_edge(1, 3, 12)
106-
>>> dinic.add_edge(2, 1, 4)
107-
>>> dinic.add_edge(2, 4, 14)
108-
>>> dinic.add_edge(3, 2, 9)
109-
>>> dinic.add_edge(3, 5, 20)
110-
>>> dinic.add_edge(4, 3, 7)
111-
>>> dinic.add_edge(4, 5, 4)
112-
>>> dinic.max_flow(0, 5)
113-
23
114100
"""
115101
max_f = 0
116102
# While we can build a Level Graph (source can reach sink)
@@ -127,9 +113,6 @@ def max_flow(self, source: int, sink: int) -> int:
127113

128114

129115
if __name__ == "__main__":
130-
import doctest
131-
132-
doctest.testmod()
133116
dn = Dinic(6)
134117
edges = [
135118
(0, 1, 16),

0 commit comments

Comments
 (0)