diff --git a/src/graph.c b/src/graph.c index 3893c2b..ab1b305 100644 --- a/src/graph.c +++ b/src/graph.c @@ -152,7 +152,7 @@ static bool graph_bfs(struct _graph *self, uint32_t idx) { self->_head->visited[i] = 0; } - printf("bfs start.\n"); + // printf("bfs start.\n"); queue_t queue = queue_new(); queue_init(queue, sizeof(uint32_t)); @@ -171,16 +171,16 @@ static bool graph_bfs(struct _graph *self, uint32_t idx) queue->push(queue, &i); } - self->print_obj((char *)self->_head->obj + idx * self->_obj_size); - printf("->"); - self->print_obj((char *)self->_head->obj + i * self->_obj_size); - printf(", "); + // self->print_obj((char *)self->_head->obj + idx * self->_obj_size); + // printf("->"); + // self->print_obj((char *)self->_head->obj + i * self->_obj_size); + // printf(", "); } } - printf("\n"); + // printf("\n"); } queue_free(&queue); - printf("bfs done.\n"); + // printf("bfs done.\n"); return true; } diff --git a/test/test_graph.c b/test/test_graph.c index b5947e2..91e959f 100644 --- a/test/test_graph.c +++ b/test/test_graph.c @@ -49,7 +49,7 @@ void test_graph_from_matrix(void) // graph->print(graph); graph->from_matrix(graph, vertexs, matrix, size); - graph->print(graph); + // graph->print(graph); graph->bfs(graph, 1); @@ -59,7 +59,7 @@ void test_graph_from_matrix(void) void test_graph(void) { - RUN_TEST(test_graph_new); + // RUN_TEST(test_graph_new); // RUN_TEST(test_graph_print); - RUN_TEST(test_graph_from_matrix); + // RUN_TEST(test_graph_from_matrix); }