COIN-OR::LEMON - Graph Library

Changeset 470:b64956c701c9 in lemon-0.x for src/work/jacint/preflow.cc


Ignore:
Timestamp:
04/29/04 13:09:12 (17 years ago)
Author:
jacint
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@621
Message:

Comparison == changed to <=

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/work/jacint/preflow.cc

    r451 r470  
    2020  readDimacsMaxFlow(std::cin, G, s, t, cap);
    2121  Timer ts;
     22  bool error=false;
    2223 
    2324  std::cout <<
     
    6263       min_min_cut_value == max_min_cut_value )
    6364    std::cout << "They are equal. " <<std::endl; 
    64 
    65 
     65  else {
     66    std::cout << "ERROR! They are not equal! " <<std::endl; 
     67    error=true;
     68  }
    6669
    6770
     
    97100    std::cout <<", which is equal to all three min cut values."
    98101              <<std::endl; 
    99 
    100 
     102  else {
     103    std::cout << "ERROR! It is not equal to all three min cut values! "
     104              <<std::endl; 
     105    error=true;
     106  }
     107 
    101108
    102109
     
    149156              <<std::endl; 
    150157  }
    151 
     158  else {
     159    std::cout <<
     160      "ERROR! It is not equal to the given flow value and to all three min cut values after phase 1! "
     161              <<std::endl; 
     162    error=true;
     163  }
     164 
    152165
    153166
     
    196209    std::cout <<", which is equal to all three min cut values."
    197210              <<std::endl; 
     211  else {
     212    std::cout << "ERROR! It is not equal to all three min cut values! "
     213              <<std::endl; 
     214    error=true;
     215  }
    198216
    199217
     
    234252    std::cout <<", which is equal to all three min cut values."
    235253              <<std::endl<<std::endl; 
    236 
     254  else {
     255    std::cout << "ERROR! It is not equal to all three min cut values! "
     256              <<std::endl; 
     257    error=true;
     258  }
     259 
     260  if (error) std::cout <<"\nThere was some error in the results!\n"<<std::endl;
     261  else std::cout <<"\nThere was no error in the results.\n"<<std::endl;
    237262
    238263  return 0;
Note: See TracChangeset for help on using the changeset viewer.