#include #include "graph/graph.h" using namespace graph; #include "algorithm/tarjan.h" #include #include TEST_SUITE("Testing Graph.") { TEST_CASE("Insert vertices/edges.") { Graph G; G.insert(1, 2); G.insert(1, 4); G.insert(1, 6); G.insert(2, 4); G.insert(2, 5); G.insert(3, 4); G.insert(3, 6); G.insert(4, 6); G.insert(5, 6); Vertex v1(1); Vertex v2(3); Vertex v3(5); algorithm::Tarjan tarjan(G); tarjan.findSCC(); // CHECK_EQ(G.connected(1, 5), true); } }