COIN-OR::LEMON - Graph Library

Changeset 2518:4c0a23bd70b5 in lemon-0.x for lemon/elevator.h


Ignore:
Timestamp:
11/21/07 14:34:38 (17 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3394
Message:

Bugfix in min cut computation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/elevator.h

    r2512 r2518  
    5151  class Elevator
    5252  {
    53   private:
     53  public:
    5454
    5555    typedef Item Key;
    5656    typedef int Value;
     57
     58  private:
    5759
    5860    typedef typename std::vector<Item>::iterator Vit;
     
    377379      _level[i]=new_level;
    378380      if(new_level>_highest_active) _highest_active=new_level;
     381    }
     382
     383    ///Mark the node as it did not reach the max level
     384   
     385    ///Mark the node as it did not reach the max level. It sets the
     386    ///level of the node to a low value, which is not connected to the
     387    ///real levels of elevator. The node should be lifted previously
     388    ///to the top level.
     389    void markToBottom(Item i) {
     390      _level[i] = - _max_level;
    379391    }
    380392   
     
    492504  template <class Graph, class Item>
    493505  class LinkedElevator {
    494   private:
     506  public:
    495507
    496508    typedef Item Key;
    497509    typedef int Value;
     510
     511  private:
    498512
    499513    typedef typename ItemSetTraits<Graph,Item>::
     
    883897    }
    884898   
     899    ///Mark the node as it did not reach the max level
     900   
     901    ///Mark the node as it did not reach the max level. It sets the
     902    ///level of the node to a low value, which is not connected to the
     903    ///real levels of elevator. The node should be lifted previously
     904    ///to the top level.
     905    void markToBottom(Item i) {
     906      _level[i] = - _max_level;
     907    }
     908
    885909    ///Lift all nodes on and above a level to the top (and deactivate them).
    886910
Note: See TracChangeset for help on using the changeset viewer.