2
0
mirror of https://github.com/boostorg/graph.git synced 2026-01-31 08:12:14 +00:00
[SVN r20569]
This commit is contained in:
Jeremy Siek
2003-10-31 01:30:10 +00:00
parent 276e86d0a6
commit 07fe2aafa3

View File

@@ -231,15 +231,15 @@ namespace boost
{
vertex_iterator i, i_end;
for (tie(i, i_end) = vertices(g); i != i_end; ++i)
{
{
adjacency_iterator ab, ae;
for (boost::tie(ab, ae) = adjacent_vertices(*i, g); ab != ae; ++ab)
{
{
if (*ab == *i)
if (components[component_number[*i]].size() == 1)
add_edge(g_to_tc_map[*i], g_to_tc_map[*i], tc);
}
}
if (components[component_number[*i]].size() == 1)
add_edge(g_to_tc_map[*i], g_to_tc_map[*i], tc);
}
}
}
}