src/work/marci/preflow_demo_leda.cc
changeset 1365 c280de819a73
parent 1364 ee5959aa4410
child 1366 d00b85f8be45
     1.1 --- a/src/work/marci/preflow_demo_leda.cc	Sun Apr 17 18:57:22 2005 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,33 +0,0 @@
     1.4 -#include <iostream.h>
     1.5 -#include <fstream.h>
     1.6 -
     1.7 -#include <LEDA/graph.h>
     1.8 -#include <LEDA/graph_alg.h>
     1.9 -#include <LEDA/dimacs.h>
    1.10 -
    1.11 -#include <time_measure.h>
    1.12 -
    1.13 -// Use a DIMACS max flow file as stdin.
    1.14 -// read_dimacs_demo_leda < dimacs_max_flow_file
    1.15 -int main() 
    1.16 -{
    1.17 -  GRAPH<int,int> G;
    1.18 -  leda_node s,t;
    1.19 -  leda_edge_array<int> cap;
    1.20 -  Read_Dimacs_Maxflow(cin,G,cap,s,t);
    1.21 - 
    1.22 -  leda_edge_array<int> flow(G);
    1.23 -
    1.24 -  std::cout << "preflow demo (LEDA)..." << std::endl;
    1.25 -  double pre_time=currTime();
    1.26 -  int flow_value = MAX_FLOW(G,s,t,cap,flow); 
    1.27 -  double post_time=currTime();
    1.28 -  //std::cout << "maximum flow: "<< std::endl;
    1.29 -  //std::cout<<std::endl;
    1.30 -  std::cout << "elapsed time: " << post_time-pre_time << " sec"<< std::endl; 
    1.31 -  std::cout << "flow value: "<< flow_value << std::endl;
    1.32 -
    1.33 -  return 0;
    1.34 -}
    1.35 -
    1.36 -