tests/graph_test.cpp
/**
 * Tests the addition of an unweighted directed edge.
 */
Tests the addition of an unweighted directed edge.
Tests the addition of an unweighted directed edge .
TEST(GraphTest, AddUnweightedEdgeDirectedGraph) {
    Graph *graph = init_graph(UNWEIGHTED, DIRECTED, 2);
    add_unweighted_edge(graph, 0, 1);
    EXPECT_EQ(graph->adjacent[0][1], 1);
    EXPECT_EQ(graph->adjacent[1][0], 0);
}
TEST ( GraphTest , AddUnweightedEdgeDirectedGraph ) { Graph * graph = init_graph ( UNWEIGHTED , DIRECTED , 2 ) ; add_unweighted_edge ( graph , 0 , 1 ) ; EXPECT_EQ ( graph -> adjacent [ 0 ] [ 1 ] , 1 ) ; EXPECT_EQ ( graph -> adjacent [ 1 ] [ 0 ] , 0 ) ; }
Tests the addition of an unweighted directed edge.
Tests the addition of an unweighted directed edge .