Changeset 487:acfb0f24d178 in lemon

Ignore:
Timestamp:
01/12/09 08:05:30 (12 years ago)
Branch:
default
Phase:
public
Message:

Rename Residual to ResidualDigraph? (#67)
The new name is more analogous to other adaptor names.

Files:
2 edited

Legend:

Unmodified
 r478 /// flow and circulation problems. /// /// Residual can be used for composing the \e residual digraph for directed /// flow and circulation problems. Let \f$G=(V, A) \f$ be a directed graph /// and let \f$F \f$ be a number type. Let \f$flow, cap: A\to F \f$ be /// functions on the arcs. /// ResidualDigraph can be used for composing the \e residual digraph /// for directed flow and circulation problems. Let \f$G=(V, A) \f$ /// be a directed graph and let \f$F \f$ be a number type. /// Let \f$flow, cap: A\to F \f$ be functions on the arcs. /// This adaptor implements a digraph structure with node set \f$V \f$ /// and arc set \f$A_{forward}\cup A_{backward} \f$, #ifdef DOXYGEN template class Residual class ResidualDigraph #else template > class Residual : class ResidualDigraph : public FilterArcs< Undirector, typedef typename CapacityMap::Value Value; typedef Residual Adaptor; typedef ResidualDigraph Adaptor; protected: /// Constructor of the residual digraph adaptor. The parameters are the /// digraph, the capacity map, the flow map, and a tolerance object. Residual(const Digraph& digraph, const CapacityMap& capacity, FlowMap& flow, const Tolerance& tolerance = Tolerance()) ResidualDigraph(const Digraph& digraph, const CapacityMap& capacity, FlowMap& flow, const Tolerance& tolerance = Tolerance()) : Parent(), _capacity(&capacity), _flow(&flow), _graph(digraph), _forward_filter(capacity, flow, tolerance), /// \relates Residual template Residual residual(const GR& digraph, const CM& capacity_map, FM& flow_map) { return Residual (digraph, capacity_map, flow_map); ResidualDigraph residualDigraph(const GR& digraph, const CM& capacity_map, FM& flow_map) { return ResidualDigraph (digraph, capacity_map, flow_map); }