Commit 23fa373d authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix potential bug in graph_distance.hh

parent fdf7b485
......@@ -91,7 +91,7 @@ struct get_distance_histogram
for (size_t j = 0; j < size_t(N); ++j)
{
if (vertex(i,g) != graph_traits<Graph>::null_vertex())
if (vertex(j,g) != graph_traits<Graph>::null_vertex())
dist_map[vertex(j,g)] = numeric_limits<val_type>::max();
}
......
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