Skip to content

Commit eb5f8d6

Browse files
committed
fix(analytical): Fix WCC's wrong result
1 parent 7ec6d6c commit eb5f8d6

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

analytical_engine/apps/property/wcc_property.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,21 @@ class WCCProperty : public PropertyAppBase<FRAG_T, WCCPropertyContext<FRAG_T>> {
140140
}
141141
}
142142

143+
for (label_id_t i = 0; i < v_label_num; ++i) {
144+
auto iv = frag.InnerVertices(i);
145+
bool ok = false;
146+
for (auto v : iv) {
147+
if (ctx.next_modified[i][v]) {
148+
messages.ForceContinue();
149+
ok = true;
150+
break;
151+
}
152+
}
153+
if (ok) {
154+
break;
155+
}
156+
}
157+
143158
ctx.curr_modified.swap(ctx.next_modified);
144159
}
145160

0 commit comments

Comments
 (0)