Upload Circuit.h

This commit is contained in:
PKU-ZLR 2020-02-26 23:13:18 +08:00 committed by GitHub
parent 64da250dd2
commit ea91c35dba
1 changed files with 4 additions and 3 deletions

View File

@ -54,11 +54,12 @@ struct Cut {
Area = 0;
AreaFlow = 0;
}
Cut(set<string> n, string nm, double dep, double area, double AF) {
Cut(set<string> n, string nm, double dep, double area, double f, double AF) {
names = n;
Name = nm;
mindep = dep;
Area = area;
fin = f;
AreaFlow = AF;
}
bool operator < (const Cut A) const{
@ -77,12 +78,12 @@ struct Var {
vector<string> suc; // successors
set<set<string> > cuts[10]; //K cuts
set<string> Rcut[25]; //represent cut
set<string> Rcut; //represent cut
//set<string> Rdcut;
Cut Fcut; // First Cut
string Partner;
int mindep, Area;
int mindep, Area, fin;
double AreaFlow;
Var(string name_, bool is_in_, bool is_out_);