Commit 4912769e authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix conversion bug in boost::edge() for reversed graphs

parent 38d63b74
......@@ -233,7 +233,9 @@ edge(const typename graph_traits<BidirectionalGraph>::vertex_descriptor u,
const typename graph_traits<BidirectionalGraph>::vertex_descriptor v,
const reverse_graph<BidirectionalGraph,GRef>& g)
return edge(v, u, g.m_g);
typedef typename reverse_graph<BidirectionalGraph>::edge_descriptor e_t;
auto e = edge(v, u, g.m_g);
return make_pair(e_t(e.first), e.second);
template <class BidirectionalGraph, class GRef>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment