diff --git a/lemon/adaptors.h b/lemon/adaptors.h --- a/lemon/adaptors.h +++ b/lemon/adaptors.h @@ -2656,8 +2656,30 @@ }; + /// \brief Returns a residual capacity map + /// + /// This function just returns a residual capacity map. + ResidualCapacity residualCapacity() const { + return ResidualCapacity(*this); + } + }; + /// \brief Returns a (read-only) Residual adaptor + /// + /// This function just returns a (read-only) \ref Residual adaptor. + /// \ingroup graph_adaptors + /// \relates Residual + template + Residual + residual(const Digraph& digraph, + const CapacityMap& capacity, + FlowMap& flow) + { + return Residual (digraph, capacity, flow); + } + + template class SplitNodesBase { public: