COIN-OR::LEMON - Graph Library

Ignore:
Timestamp:
08/31/04 19:54:22 (19 years ago)
Author:
marci
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1070
Message:

graph_wrapper.h is ready for hugo 0.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/work/marci/graph_wrapper_time.cc

    r773 r777  
    11// -*- c++ -*-
     2
     3// Use a DIMACS max flow file as follows:
     4// graph_wrapper_time dimacs_max_flow_file
    25
    36#include <iostream>
     
    2932  Timer ts;
    3033  ts.reset();
    31   cout << g.nodeNum() << endl;
    32   cout << g.edgeNum() << endl;
     34
    3335  typedef MaxFlow<Graph, int, FlowMap, FlowMap> MyMaxFlow;
    3436  MyMaxFlow max_flow(g, s, t, cap, flow);
     
    4244  typedef ListGraph Graph;
    4345  Graph g;
    44 //   cout << g.id(g.addNode()) << endl;
    45 //   cout << g.id(g.addNode()) << endl;
    46 //   cout << g.nodeNum() << endl;
    4746  timeTest<Graph>(in, g);
    4847  typedef GraphWrapper<Graph> Graph1;
    4948  Graph1 g1(g);
    50 //   g1.clear();
    51 //   cout << g.id(g1.addNode()) << endl;
    52 //   cout << g.id(g1.addNode()) << endl;
    53 //   cout << g1.nodeNum() << endl;
    54 //   g1.clear();
    5549  timeTest<Graph1>(in, g1);
    5650  typedef GraphWrapper<Graph1> Graph2;
     
    6054  Graph3 g3(g2);
    6155  timeTest<Graph3>(in, g3);
    62 //   typedef GraphWrapper<Graph3> Graph4;
    63 //   Graph4 g4(g3);
    64 //   timeTest<Graph4>(in, g4);
    65 //   typedef GraphWrapper<Graph4> Graph5;
    66 //   Graph5 g5(g4);
    67 //   timeTest<Graph5>(in, g5);
    68 //   typedef GraphWrapper<Graph5> Graph6;
    69 //   Graph6 g6(g5);
    70 //   timeTest<Graph6>(in, g6); 
    71 //   typedef GraphWrapper<Graph6> Graph7;
    72 //   Graph7 g7(g6);
    73 //   timeTest<Graph7>(in, g7);
     56  typedef GraphWrapper<Graph3> Graph4;
     57  Graph4 g4(g3);
     58  timeTest<Graph4>(in, g4);
     59  typedef GraphWrapper<Graph4> Graph5;
     60  Graph5 g5(g4);
     61  timeTest<Graph5>(in, g5);
     62  typedef GraphWrapper<Graph5> Graph6;
     63  Graph6 g6(g5);
     64  timeTest<Graph6>(in, g6); 
     65  typedef GraphWrapper<Graph6> Graph7;
     66  Graph7 g7(g6);
     67  timeTest<Graph7>(in, g7);
    7468
    7569  return 0;
Note: See TracChangeset for help on using the changeset viewer.