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

Method edge

code/graph/edmonds_karps.cpp:5–6  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3struct flow_network {
4 struct edge { int v, nxt, cap;
5 edge(int _v, int _cap, int _nxt)
6 : v(_v), nxt(_nxt), cap(_cap) { } };
7 int n, *head; vector<edge> e, e_store;
8 flow_network(int _n) : n(_n) {
9 memset(head = new int[n], -1, n*sizeof(int)); }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected