/usr/include/boost/graph/detail
NameSizeModeActions
adjacency_list.hpp1060900644editdlrm
adj_list_edge_iterator.hpp39870644editdlrm
array_binary_tree.hpp70150644editdlrm
augment.hpp22930644editdlrm
compressed_sparse_row_struct.hpp301000644editdlrm
connected_components.hpp67160644editdlrm
d_ary_heap.hpp122550644editdlrm
edge.hpp35500644editdlrm
empty_header.hpp3830644editdlrm
geodesic.hpp48250644editdlrm
histogram_sort.hpp130200644editdlrm
incidence_iterator.hpp26810644editdlrm
incremental_components.hpp31870644editdlrm
index.hpp26230644editdlrm
indexed_properties.hpp94200644editdlrm
is_distributed_selector.hpp8550644editdlrm
labeled_graph_traits.hpp66180644editdlrm
list_base.hpp56140644editdlrm
mpi_include.hpp5360644editdlrm
permutation.hpp60200644editdlrm
read_graphviz_new.hpp35550644editdlrm
read_graphviz_spirit.hpp280190644editdlrm
self_avoiding_walk.hpp158560644editdlrm
set_adaptor.hpp30920644editdlrm
shadow_iterator.hpp54970644editdlrm
sparse_ordering.hpp63450644editdlrm
Edit: /usr/include/boost/graph/detail/augment.hpp (2293B)
//======================================================================= // Copyright 2013 University of Warsaw. // Authors: Piotr Wygocki // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) //======================================================================= #ifndef BOOST_GRAPH_AUGMENT_HPP #define BOOST_GRAPH_AUGMENT_HPP #include namespace boost { namespace detail { template < class Graph, class ResCapMap > filtered_graph< const Graph, is_residual_edge< ResCapMap > > residual_graph( const Graph& g, ResCapMap residual_capacity) { return filtered_graph< const Graph, is_residual_edge< ResCapMap > >( g, is_residual_edge< ResCapMap >(residual_capacity)); } template < class Graph, class PredEdgeMap, class ResCapMap, class RevEdgeMap > inline void augment(const Graph& g, typename graph_traits< Graph >::vertex_descriptor src, typename graph_traits< Graph >::vertex_descriptor sink, PredEdgeMap p, ResCapMap residual_capacity, RevEdgeMap reverse_edge) { typename graph_traits< Graph >::edge_descriptor e; typename graph_traits< Graph >::vertex_descriptor u; typedef typename property_traits< ResCapMap >::value_type FlowValue; // find minimum residual capacity along the augmenting path FlowValue delta = (std::numeric_limits< FlowValue >::max)(); e = get(p, sink); do { BOOST_USING_STD_MIN(); delta = min BOOST_PREVENT_MACRO_SUBSTITUTION( delta, get(residual_capacity, e)); u = source(e, g); e = get(p, u); } while (u != src); // push delta units of flow along the augmenting path e = get(p, sink); do { put(residual_capacity, e, get(residual_capacity, e) - delta); put(residual_capacity, get(reverse_edge, e), get(residual_capacity, get(reverse_edge, e)) + delta); u = source(e, g); e = get(p, u); } while (u != src); } } // namespace detail } // namespace boost #endif /* BOOST_GRAPH_AUGMENT_HPP */