|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r84632 - trunk/boost/graph
From: jewillco_at_[hidden]
Date: 2013-06-04 12:07:21
Author: jewillco
Date: 2013-06-04 12:07:20 EDT (Tue, 04 Jun 2013)
New Revision: 84632
URL: http://svn.boost.org/trac/boost/changeset/84632
Log:
Fixed dangling reference bug reported by Marshall Clow; other small cleanups
Text files modified:
trunk/boost/graph/stoer_wagner_min_cut.hpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Modified: trunk/boost/graph/stoer_wagner_min_cut.hpp
==============================================================================
--- trunk/boost/graph/stoer_wagner_min_cut.hpp (original)
+++ trunk/boost/graph/stoer_wagner_min_cut.hpp 2013-06-04 12:07:20 EDT (Tue, 04 Jun 2013)
@@ -36,7 +36,7 @@
mas_min_cut_visitor(const Graph& g,
ParityMap parity,
weight_type& cutweight,
- WeightMap weight_map,
+ const WeightMap& weight_map,
IndexMap index_map)
: m_bestParity(parity),
m_parity(make_one_bit_color_map(num_vertices(g), index_map)),
@@ -140,7 +140,7 @@
weight_type bestW = (std::numeric_limits<weight_type>::max)();
weight_type bestThisTime = (std::numeric_limits<weight_type>::max)();
- vertex_descriptor bestStart;
+ vertex_descriptor bestStart = boost::graph_traits<UndirectedGraph>::null_vertex();
detail::mas_min_cut_visitor<ParityMap, WeightMap, IndexMap>
vis(g, parities, bestThisTime, weights, index_map);
@@ -213,7 +213,7 @@
typedef typename boost::graph_traits<UndirectedGraph>::vertex_descriptor vertex_descriptor;
typedef typename boost::property_traits<WeightMap>::value_type weight_type;
- typedef typename boost::detail::make_priority_queue_from_arg_pack_gen<boost::graph::keywords::tag::max_priority_queue, weight_type, vertex_descriptor, std::greater<weight_type> > gen_type;
+ typedef boost::detail::make_priority_queue_from_arg_pack_gen<boost::graph::keywords::tag::max_priority_queue, weight_type, vertex_descriptor, std::greater<weight_type> > gen_type;
gen_type gen(choose_param(get_param(arg_pack, boost::distance_zero_t()), weight_type(0)));
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk