Skip to content

Commit 958f3f3

Browse files
committed
indent
1 parent 07483e7 commit 958f3f3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

include/scc.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ namespace alg {
3838
// step 1. discover vertices of G in decreasing of u.f
3939
Heap<int32_t> Q(g.vertex_count()) ;
4040
Graph::Adjacent * a;
41-
list_for_each_entry(a, &g.list(), a_node) {
41+
list_for_each_entry(a, &g.list(), a_node) {
4242
Q.insert(INT_MAX - a->f, a->v.id); // descending order of a->f
43-
}
43+
}
4444

4545
// step 2. discover
46-
// mark all vertex color to WHITE
47-
list_for_each_entry(a, &GT->list(), a_node) {
48-
a->color = Graph::WHITE;
49-
}
46+
// mark all vertex color to WHITE
47+
list_for_each_entry(a, &GT->list(), a_node) {
48+
a->color = Graph::WHITE;
49+
}
5050

5151
// step 3. call DFS(GT), but in the main loop of DFS, consider the vertices
5252
// in order of decreasing u.f (as computed in line 1)

0 commit comments

Comments
 (0)