COIN-OR::LEMON - Graph Library

Ignore:
Location:
lemon
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • lemon/bfs.h

    r437 r421  
    17421742    /// \pre Either \ref run(Node) "run()" or \ref init()
    17431743    /// must be called before using this function.
    1744     bool reached(Node v) const { return (*_reached)[v]; }
     1744    bool reached(Node v) { return (*_reached)[v]; }
    17451745
    17461746    ///@}
  • lemon/circulation.h

    r437 r417  
    420420    /// \pre Either \ref run() or \ref init() must be called before
    421421    /// using this function.
    422     const Elevator& elevator() const {
     422    const Elevator& elevator() {
    423423      return *_level;
    424424    }
     
    645645    /// \pre Either \ref run() or \ref init() must be called before
    646646    /// using this function.
    647     const FlowMap& flowMap() const {
     647    const FlowMap& flowMap() {
    648648      return *_flow;
    649649    }
     
    670670       \sa checkBarrier()
    671671    */
    672     bool barrier(const Node& node) const
     672    bool barrier(const Node& node)
    673673    {
    674674      return (*_level)[node] >= _el;
     
    693693    /// \sa checkBarrier()
    694694    template<class BarrierMap>
    695     void barrierMap(BarrierMap &bar) const
     695    void barrierMap(BarrierMap &bar)
    696696    {
    697697      for(NodeIt n(_g);n!=INVALID;++n)
     
    713713    ///Check if the found flow is a feasible circulation,
    714714    ///
    715     bool checkFlow() const {
     715    bool checkFlow() {
    716716      for(ArcIt e(_g);e!=INVALID;++e)
    717717        if((*_flow)[e]<(*_lo)[e]||(*_flow)[e]>(*_up)[e]) return false;
     
    731731    ///\sa barrier()
    732732    ///\sa barrierMap()
    733     bool checkBarrier() const
     733    bool checkBarrier()
    734734    {
    735735      Value delta=0;
  • lemon/dfs.h

    r438 r435  
    16271627    /// \pre Either \ref run(Node) "run()" or \ref init()
    16281628    /// must be called before using this function.
    1629     bool reached(Node v) const { return (*_reached)[v]; }
     1629    bool reached(Node v) { return (*_reached)[v]; }
    16301630
    16311631    ///@}
  • lemon/preflow.h

    r437 r408  
    367367    /// \pre Either \ref run() or \ref init() must be called before
    368368    /// using this function.
    369     const Elevator& elevator() const {
     369    const Elevator& elevator() {
    370370      return *_level;
    371371    }
     
    919919    /// \pre Either \ref run() or \ref init() must be called before
    920920    /// using this function.
    921     const FlowMap& flowMap() const {
     921    const FlowMap& flowMap() {
    922922      return *_flow;
    923923    }
Note: See TracChangeset for help on using the changeset viewer.