COIN-OR::LEMON - Graph Library

Ignore:
Timestamp:
02/20/04 23:01:02 (20 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@143
Message:

Dynamic Maps added.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/work/alpar/f_ed_ka_demo.cc

    r103 r108  
    99#include "../marci/time_measure.h"
    1010
    11 using namespace marci;
     11using namespace hugo;
    1212
    1313// Use a DIMACS max flow file as stdin.
     
    1515
    1616int main(int, char **) {
    17   //  typedef SmartGraph Graph;
    18   typedef ListGraph Graph;
     17  typedef SmartGraph Graph;
     18  //typedef ListGraph Graph;
    1919
    2020  typedef Graph::NodeIt NodeIt;
     
    2424  Graph G;
    2525  NodeIt s, t;
    26   Graph::EdgeMap<int> cap(G);
     26  Graph::DynEdgeMap<int> cap(G);
    2727  readDimacsMaxFlow(std::cin, G, s, t, cap);
    2828
    2929  std::cout << "edmonds karp demo..." << std::endl;
    30   Graph::EdgeMap<int> flow(G); //0 flow
     30  Graph::DynEdgeMap<int> flow(G); //0 flow
    3131 
    3232  int ret;
Note: See TracChangeset for help on using the changeset viewer.