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

Function test_7

code/graph/scc.test.cpp:107–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107void test_7() {
108 vvi adj(2);
109
110 for (int i = 0; i < 100; i++)
111 {
112 adj[0].push_back(0);
113 adj[1].push_back(1);
114 }
115
116 adj[0].push_back(1);
117
118 pair<union_find, vi> res = scc(adj);
119 union_find scc = res.first;
120
121 assert_not_equal(scc.find(0), scc.find(1));
122}
123
124void test_8() {
125 vvi adj(2);

Callers 1

testFunction · 0.85

Calls 4

sccFunction · 0.85
assert_not_equalFunction · 0.85
push_backMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected