aboutsummaryrefslogtreecommitdiff
path: root/src/graph.h
diff options
context:
space:
mode:
authorMikkel Thestrup <mithe24@student.sdu.dk>2025-12-01 11:00:37 +0100
committerMikkel Thestrup <mithe24@student.sdu.dk>2025-12-04 18:43:28 +0100
commit0fb2f9061c76bae37121dcf689c5b952c043f304 (patch)
tree894afd9dc4de6979f5340e5e021206e312d3c096 /src/graph.h
parent99df63cc27d34b9eee3c41a4ab43dfc3362ec949 (diff)
downloadcycle-detector-0fb2f9061c76bae37121dcf689c5b952c043f304.tar.gz
cycle-detector-0fb2f9061c76bae37121dcf689c5b952c043f304.zip
Changed graph to use vector instead of linked list
Diffstat (limited to 'src/graph.h')
-rw-r--r--src/graph.h10
1 files changed, 5 insertions, 5 deletions
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;
};
/**