COIN-OR::LEMON - Graph Library

Changeset 450:14bb8812b8af in lemon-main


Ignore:
Timestamp:
01/09/09 12:43:52 (16 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Phase:
public
Message:

Add creator functions for Residual and Residual::ResidualCapacity? (#67)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/adaptors.h

    r449 r450  
    26572657    };
    26582658
     2659    /// \brief Returns a residual capacity map
     2660    ///
     2661    /// This function just returns a residual capacity map.
     2662    ResidualCapacity residualCapacity() const {
     2663      return ResidualCapacity(*this);
     2664    }
     2665
    26592666  };
     2667
     2668  /// \brief Returns a (read-only) Residual adaptor
     2669  ///
     2670  /// This function just returns a (read-only) \ref Residual adaptor.
     2671  /// \ingroup graph_adaptors
     2672  /// \relates Residual
     2673  template<typename Digraph, typename CapacityMap, typename FlowMap>
     2674  Residual<Digraph, CapacityMap, FlowMap>
     2675  residual(const Digraph& digraph,
     2676           const CapacityMap& capacity,
     2677           FlowMap& flow)
     2678  {
     2679    return Residual<Digraph, CapacityMap, FlowMap> (digraph, capacity, flow);
     2680  }
     2681
    26602682
    26612683  template <typename _Digraph>
Note: See TracChangeset for help on using the changeset viewer.