You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
6 lines
465 B
6 lines
465 B
3 months ago
|
#include <vector>
|
||
|
using std::vector;
|
||
|
|
||
|
void MaxFlow(int n_vert, const vector<std::pair<int, int>> &edge, const vector<double> &cap, int s, int t, vector<double>& output_flow);
|
||
|
void MinCutfromMaxFlow(int n_vert, const vector<std::pair<int, int>> &edge, const vector<double> &cap, int s, int t, vector<int> &part1, vector<int> &part2);
|
||
|
void MinCut(int n_vert, const vector<std::pair<int, int>> &edge, const vector<double> &cap, vector<int> &part1, vector<int> &part2);
|