MCPcopy Create free account
hub / github.com/Vishruth-S/CompetitiveCode / Dinic

Method Dinic

HackerEarth_problems/New Friends/solution.cpp:53–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51 queue<int> q;
52
53 Dinic(int n, int s, int t) : n(n), s(s), t(t) {
54 adj.resize(n);
55 level.resize(n);
56 ptr.resize(n);
57 }
58
59 void add_edge(int v, int u, long long cap) {
60 edges.emplace_back(v, u, cap);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected