lemon/adaptors.h
changeset 450 14bb8812b8af
parent 449 91fcb8ed4cdc
child 451 fbd6e04acf44
equal deleted inserted replaced
5:cb26757dc6b7 6:63d50c66d347
  2654         return _adaptor->residualCapacity(a);
  2654         return _adaptor->residualCapacity(a);
  2655       }
  2655       }
  2656 
  2656 
  2657     };
  2657     };
  2658 
  2658 
       
  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 
  2659   };
  2666   };
       
  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 
  2660 
  2682 
  2661   template <typename _Digraph>
  2683   template <typename _Digraph>
  2662   class SplitNodesBase {
  2684   class SplitNodesBase {
  2663   public:
  2685   public:
  2664 
  2686