Commit eed1f09e authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

graph_blockmodel.hh: Use const reference in get_me()

parent a3a8805a
......@@ -829,7 +829,7 @@ get_me(typename graph_traits<Graph>::vertex_descriptor r,
assert(r < ehash.size());
const auto& map = ehash[r];
auto iter = map.find(s);
const auto& iter = map.find(s);
if (iter == map.end())
return make_pair(typename graph_traits<Graph>::edge_descriptor(), false);
return make_pair(iter->second, true);
Supports Markdown
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