Ticket #6306: reverse_graph.patch
File reverse_graph.patch, 1.0 KB (added by , 11 years ago) |
---|
-
reverse_graph.hpp
269 269 } 270 270 271 271 template <class BidirectionalGraph, class GRef> 272 inline std::pair< typename graph_traits<BidirectionalGraph>::edge_descriptor,273 bool>272 inline std::pair< typename graph_traits<reverse_graph<BidirectionalGraph,GRef> >::edge_descriptor, 273 bool> 274 274 edge(const typename graph_traits<BidirectionalGraph>::vertex_descriptor u, 275 275 const typename graph_traits<BidirectionalGraph>::vertex_descriptor v, 276 276 const reverse_graph<BidirectionalGraph,GRef>& g) 277 277 { 278 return edge(v, u, g.m_g); 278 typedef typename graph_traits<BidirectionalGraph>::edge_descriptor underlying_edge_descriptor; 279 std::pair<underlying_edge_descriptor, bool> e = edge(v, u, g.m_g); 280 return std::make_pair(detail::reverse_graph_edge_descriptor<underlying_edge_descriptor>(e.first), e.second); 279 281 } 280 282 281 283 template <class BidirectionalGraph, class GRef>