MCPcopy Create free account
hub / github.com/SuprDewd/CompetitiveProgramming / reset

Method reset

code/graph/edmonds_karps_mcmf.cpp:11–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9 int n; vi head; vector<edge> e, e_store;
10 flow_network(int _n) : n(_n), head(n,-1) { }
11 void reset() { e = e_store; }
12 void add_edge(int u, int v, int cost, int uv, int vu=0) {
13 e.push_back(edge(v, uv, cost, head[u]));
14 head[u] = (int)size(e)-1;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected