File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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, >->list (), a_node) {
48- a->color = Graph::WHITE;
49- }
46+ // mark all vertex color to WHITE
47+ list_for_each_entry (a, >->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)
You can’t perform that action at this time.
0 commit comments