MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / __init__

Method __init__

graphs/dinic.py:5–9  ·  view source on GitHub ↗
(self, n)

Source from the content-addressed store, hash-verified

3
4class Dinic:
5 def __init__(self, n):
6 self.lvl = [0] * n
7 self.ptr = [0] * n
8 self.q = [0] * n
9 self.adj = [[] for _ in range(n)]
10
11 """
12 Here we will add our edges containing with the following parameters:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected