... | ... |
@@ -2653,14 +2653,36 @@ |
2653 | 2653 |
Value operator[](const Arc& a) const { |
2654 | 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 |
}; |
2660 | 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 |
|
|
2682 |
|
|
2661 | 2683 |
template <typename _Digraph> |
2662 | 2684 |
class SplitNodesBase { |
2663 | 2685 |
public: |
2664 | 2686 |
|
2665 | 2687 |
typedef _Digraph Digraph; |
2666 | 2688 |
typedef DigraphAdaptorBase<const _Digraph> Parent; |
0 comments (0 inline)