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

Function test_8

code/graph/scc.test.cpp:124–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124void 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
141void test_9() {
142 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