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

all_pairs_search(): fix initialization for filtered graphs

This fixes issue #723
parent 3b8a8c5c
......@@ -38,13 +38,11 @@ struct do_all_pairs_search
typedef typename property_traits<DistMap>::value_type::value_type
dist_t;
parallel_vertex_loop
(g,
[&](auto& v)
{
dist_map[v].clear();
dist_map[v].resize(num_vertices(g), 0);
});
for (size_t v = 0; v < num_vertices(g); ++v)
{
dist_map[v].clear();
dist_map[v].resize(num_vertices(g), 0);
}
if (dense)
{
......
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