COIN-OR::LEMON - Graph Library

Changeset 1222:a3fb216a267d in lemon-0.x for src/test


Ignore:
Timestamp:
03/17/05 11:43:57 (20 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1642
Message:

The first step toward function type interface to Preflow alg:

  • Naming changed to be closer in style to the BFD/DFS/Dijkstra triplet.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/test/preflow_test.cc

    r1215 r1222  
    5050  preflow_test.run();
    5151  preflow_test.flowValue();
    52   preflow_test.setSource(n);
    53   preflow_test.setFlow(flow);
     52  preflow_test.source(n);
     53  preflow_test.flowMap(flow);
    5454
    5555  preflow_test.phase1(PType::NO_FLOW);
     
    5757
    5858  preflow_test.phase2();
    59   preflow_test.setTarget(n);
    60   preflow_test.setCap(cap);
     59  preflow_test.target(n);
     60  preflow_test.capacityMap(cap);
    6161  preflow_test.minMinCut(cut);
    6262  preflow_test.maxMinCut(cut);
     
    130130
    131131  for(EdgeIt e(g); e!=INVALID; ++e) cap[e]=2*cap[e];
    132   preflow_test.setCap(cap); 
     132  preflow_test.capacityMap(cap); 
    133133
    134134  preflow_test.phase1(PType::PRE_FLOW);
     
    169169  }
    170170
    171   preflow_test.setFlow(flow);
     171  preflow_test.flowMap(flow);
    172172
    173173  NodeIt tmp1(g,s);
     
    179179  if ( tmp2 != INVALID ) t=tmp2;
    180180
    181   preflow_test.setSource(s);
    182   preflow_test.setTarget(t);
     181  preflow_test.source(s);
     182  preflow_test.target(t);
    183183 
    184184  preflow_test.run();
Note: See TracChangeset for help on using the changeset viewer.