From 0fb2f9061c76bae37121dcf689c5b952c043f304 Mon Sep 17 00:00:00 2001 From: Mikkel Thestrup Date: Mon, 1 Dec 2025 11:00:37 +0100 Subject: Changed graph to use vector instead of linked list --- src/graph.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/graph.h') diff --git a/src/graph.h b/src/graph.h index 6461cc7..ca9f32a 100644 --- a/src/graph.h +++ b/src/graph.h @@ -9,7 +9,7 @@ #ifndef GRAPH_H #define GRAPH_H -#include "linked_list.h" +#include "vector.h" /** * @struct Vertex @@ -41,19 +41,19 @@ struct Vertex { /** * @brief List of outgoing neighbors (successors). - * @details A LinkedList containing pointers to Vertex structures that + * @details A Vector containing pointers to Vertex structures that * this vertex points to (outgoing edges). Each element in the * list is of type (Vertex*). */ - LinkedList *out_neighbours; + Vector *out_neighbours; /** * @brief List of incoming neighbors (predecessors). - * @details A LinkedList containing pointers to Vertex structures that + * @details A Vector containing pointers to Vertex structures that * point to this vertex (incoming edges). Each element in the * list is of type (Vertex*). */ - LinkedList *in_neighbours; + Vector *in_neighbours; }; /** -- cgit v1.2.3-70-g09d2