There is arc->cap_upperbound in change arc function "CHECK_GE(arc->cap_upperbound, 0); "
this check should have been done in AddArc function before adding this value to the arc.
In current function we can have same check on incoming value to check the validity of incoming value cap_upper_bound like CHECK_GE(cap_upper_bound, 0);.
There is arc->cap_upperbound in change arc function "CHECK_GE(arc->cap_upperbound, 0); " this check should have been done in AddArc function before adding this value to the arc.
In current function we can have same check on incoming value to check the validity of incoming value cap_upper_bound like CHECK_GE(cap_upper_bound, 0);.