MCPcopy Create free account
hub / github.com/SuprDewd/CompetitiveProgramming / test_9

Function test_9

code/graph/scc.test.cpp:141–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141void test_9() {
142 vvi adj(2);
143
144 for (int i = 0; i < 100; i++)
145 {
146 adj[0].push_back(0);
147 adj[1].push_back(1);
148 }
149
150 adj[0].push_back(1);
151 adj[1].push_back(0);
152
153 pair<union_find, vi> res = scc(adj);
154 union_find scc = res.first;
155
156 assert_equal(scc.find(0), scc.find(1));
157}
158
159void test_10() {
160 vvi adj(4);

Callers 1

testFunction · 0.85

Calls 4

sccFunction · 0.85
push_backMethod · 0.80
assert_equalFunction · 0.50
findMethod · 0.45

Tested by

no test coverage detected