COIN-OR::LEMON - Graph Library

Changeset 1059:08f2dc76e82e in lemon-main


Ignore:
Timestamp:
02/28/13 18:13:48 (11 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Phase:
public
Message:

Rename flow init functions according to Preflow (#177)

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lemon/edmonds_karp.h

    r1058 r1059  
    312312    /// outgoing flow.
    313313    template <typename FlowMap>
    314     void flowInit(const FlowMap& flowMap) {
     314    void init(const FlowMap& flowMap) {
    315315      createStructures();
    316316      for (ArcIt e(_graph); e != INVALID; ++e) {
     
    336336    /// feasible flow.
    337337    template <typename FlowMap>
    338     bool checkedFlowInit(const FlowMap& flowMap) {
     338    bool checkedInit(const FlowMap& flowMap) {
    339339      createStructures();
    340340      for (ArcIt e(_graph); e != INVALID; ++e) {
  • test/edmonds_karp_test.cc

    r1058 r1059  
    187187
    188188  for(ArcIt e(g); e!=INVALID; ++e) cap[e]=2*cap[e];
    189   ek_test.flowInit(flow);
     189  ek_test.init(flow);
    190190  ek_test.start();
    191191
Note: See TracChangeset for help on using the changeset viewer.