From eb36987fec4da3e61217abfec387862e0a2bfd2c Mon Sep 17 00:00:00 2001 From: Jeremiah Willcock Date: Sun, 18 Apr 2010 14:46:58 +0000 Subject: [PATCH] Merged r61326 (small bug fix) from trunk [SVN r61359] --- include/boost/graph/compressed_sparse_row_graph.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/graph/compressed_sparse_row_graph.hpp b/include/boost/graph/compressed_sparse_row_graph.hpp index 02adcd12..5488f42f 100644 --- a/include/boost/graph/compressed_sparse_row_graph.hpp +++ b/include/boost/graph/compressed_sparse_row_graph.hpp @@ -1318,7 +1318,7 @@ edge(Vertex i, Vertex j, const BOOST_CSR_GRAPH_TYPE& g) typedef typename BOOST_CSR_GRAPH_TYPE::out_edge_iterator out_edge_iter; std::pair range = out_edges(i, g); for (; range.first != range.second; ++range.first) { - if (target(*range.first) == j) + if (target(*range.first, g) == j) return std::make_pair(*range.first, true); } return std::make_pair(typename BOOST_CSR_GRAPH_TYPE::edge_descriptor(),