Move Graph::vertices to Digraph
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user