Add tests for same SCC O(1) query
This commit is contained in:
@@ -67,7 +67,7 @@ TEST_SUITE("Graph") {
|
||||
REQUIRE_EQ(G.vertices.size(), 9);
|
||||
|
||||
algo::Tarjan<std::uint16_t> tarjan(G);
|
||||
auto sccs = tarjan.run();
|
||||
auto sccs = tarjan.findSCC();
|
||||
}
|
||||
|
||||
TEST_CASE("SCC T2") {
|
||||
@@ -88,6 +88,6 @@ TEST_SUITE("Graph") {
|
||||
REQUIRE_EQ(G.vertices.size(), 7);
|
||||
|
||||
algo::Tarjan<std::uint16_t> tarjan(G);
|
||||
auto sccs = tarjan.run();
|
||||
auto sccs = tarjan.findSCC();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user