MCPcopy Create free account
hub / github.com/ShahjalalShohag/code-library / main

Function main

Graph Theory/Dinics Algorithm.cpp:75–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73 }
74};
75int main() {
76 int n, m;
77 cin >> n >> m;
78 Dinic F(n + 1);
79 for (int i = 1; i <= m; i++) {
80 int u, v, w;
81 cin >> u >> v >> w;
82 F.add_edge(u, v, w);
83 }
84 cout << F.max_flow(1, n) << '\n';
85 return 0;
86}

Callers

nothing calls this directly

Calls 2

add_edgeMethod · 0.45
max_flowMethod · 0.45

Tested by

no test coverage detected