Skip to content

Commit 9ab3e64

Browse files
committed
Sort components for check
1 parent b323594 commit 9ab3e64

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

test/test_strongly_connected_components.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ int main() {
3535
[](auto &l, auto &r) { return l[0] < r[0]; });
3636
for (vector<int> a : adj_scc)
3737
sort(a.begin(), a.end());
38+
for (vector<int> a : components)
39+
sort(a.begin(), a.end());
3840

3941
assert(components.size() == 4);
4042
assert(components[0] == std::vector<int>({0, 7}));

0 commit comments

Comments
 (0)