gravatar
kpeter (Peter Kovacs)
kpeter@inf.elte.hu
Add a warning about huge capacities in Preflow (#319)
0 1 0
default
1 file changed with 3 insertions and 0 deletions:
↑ Collapse diff ↑
Ignore white space 24 line context
... ...
@@ -104,24 +104,27 @@
104 104
  /// \e push-relabel algorithm producing a \ref max_flow
105 105
  /// "flow of maximum value" in a digraph \ref clrs01algorithms,
106 106
  /// \ref amo93networkflows, \ref goldberg88newapproach.
107 107
  /// The preflow algorithms are the fastest known maximum
108 108
  /// flow algorithms. The current implementation uses a mixture of the
109 109
  /// \e "highest label" and the \e "bound decrease" heuristics.
110 110
  /// The worst case time complexity of the algorithm is \f$O(n^2\sqrt{e})\f$.
111 111
  ///
112 112
  /// The algorithm consists of two phases. After the first phase
113 113
  /// the maximum flow value and the minimum cut is obtained. The
114 114
  /// second phase constructs a feasible maximum flow on each arc.
115 115
  ///
116
  /// \warning This implementation cannot handle infinite or very large
117
  /// capacities (e.g. the maximum value of \c CAP::Value).
118
  ///
116 119
  /// \tparam GR The type of the digraph the algorithm runs on.
117 120
  /// \tparam CAP The type of the capacity map. The default map
118 121
  /// type is \ref concepts::Digraph::ArcMap "GR::ArcMap<int>".
119 122
#ifdef DOXYGEN
120 123
  template <typename GR, typename CAP, typename TR>
121 124
#else
122 125
  template <typename GR,
123 126
            typename CAP = typename GR::template ArcMap<int>,
124 127
            typename TR = PreflowDefaultTraits<GR, CAP> >
125 128
#endif
126 129
  class Preflow {
127 130
  public:
0 comments (0 inline)