Move Graph::vertices to Digraph

This commit is contained in:
stefiosif
2022-10-12 09:32:40 +03:00
parent 3d9651c474
commit 8b6d341d18
3 changed files with 21 additions and 24 deletions

View File

@@ -35,7 +35,7 @@ TEST_SUITE("Graph") {
G.insert(13, 9);
G.insert(12, 10);
REQUIRE_EQ(G.adjMatrix.size(), 13);
REQUIRE_EQ(G.V(), 13);
auto reverse = G.reverse();
@@ -85,8 +85,6 @@ TEST_SUITE("Graph") {
G.insert(13, 9);
G.insert(12, 10);
REQUIRE_EQ(G.adjMatrix.size(), 13);
CHECK_EQ(G.V(), 13);
CHECK_EQ(G.E(), 18);
}
@@ -116,7 +114,7 @@ TEST_SUITE("Graph") {
G.insert(8, 9);
G.insert(9, 5);
REQUIRE_EQ(G.adjMatrix.size(), 9);
REQUIRE_EQ(G.V(), 9);
auto SCCs = algo::Tarjan<std::uint16_t>(G.adjMatrix).execute();