| 122 | } |
| 123 | |
| 124 | void test_8() { |
| 125 | vvi adj(2); |
| 126 | |
| 127 | for (int i = 0; i < 100; i++) |
| 128 | { |
| 129 | adj[0].push_back(0); |
| 130 | adj[1].push_back(1); |
| 131 | } |
| 132 | |
| 133 | adj[1].push_back(0); |
| 134 | |
| 135 | pair<union_find, vi> res = scc(adj); |
| 136 | union_find scc = res.first; |
| 137 | |
| 138 | assert_not_equal(scc.find(0), scc.find(1)); |
| 139 | } |
| 140 | |
| 141 | void test_9() { |
| 142 | vvi adj(2); |
no test coverage detected