Changeset 11:cf6519daa7fa in lemon-benchmark for tests/circulation.cc
- Timestamp:
- 12/11/11 11:19:39 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/circulation.cc
r10 r11 5 5 #include <lemon/dimacs.h> 6 6 #include <lemon/error.h> 7 #include <istream> 7 8 8 const char test_name[]= "circulation";9 std::string test_name = "circulation"; 9 10 10 11 using namespace lemon; 11 12 12 int testMain( int argc, char **argv)13 int testMain(std::istream &input) 13 14 { 14 if(argc!=2) exit(1);15 16 15 typedef int Value; 17 16 … … 25 24 Timer ti; 26 25 try { 27 std::ifstream input;28 input.open(argv[1]);29 26 readDimacsMin(input, g, lo_cap, up_cap, cost, sup); 30 27 } catch (FormatError& error) { … … 32 29 return 1; 33 30 } 34 logTime("f ile-read",ti);31 logTime("fread",ti); 35 32 36 33 Timer tf;
Note: See TracChangeset
for help on using the changeset viewer.