diff --git a/include/boost/graph/stoer_wagner_min_cut.hpp b/include/boost/graph/stoer_wagner_min_cut.hpp index 9cd2d0da..39375467 100644 --- a/include/boost/graph/stoer_wagner_min_cut.hpp +++ b/include/boost/graph/stoer_wagner_min_cut.hpp @@ -74,7 +74,8 @@ namespace boost { assert(pq.size() >= 2); - vertex_descriptor s, t; + vertex_descriptor s = boost::graph_traits::null_vertex(); + vertex_descriptor t = boost::graph_traits::null_vertex(); weight_type w; while (!pq.empty()) { // while PQ \neq {} do const vertex_descriptor u = pq.top(); // u = extractmax(PQ)