aboutsummaryrefslogtreecommitdiff
path: root/src/graph.h
diff options
context:
space:
mode:
authorMikkel Thestrup <mithe24@student.sdu.dk>2025-12-02 10:25:30 +0100
committerMikkel Thestrup <mithe24@student.sdu.dk>2025-12-02 10:25:30 +0100
commit4a71e268c9cc5d7d9dd8a734ead6d657efa555a6 (patch)
tree10964d6e7225d46579bb531841298186f028dbf4 /src/graph.h
parente50e38edbc0df8e2ef46fcdc8498e29d4422afb7 (diff)
downloadcycle-detector-4a71e268c9cc5d7d9dd8a734ead6d657efa555a6.tar.gz
cycle-detector-4a71e268c9cc5d7d9dd8a734ead6d657efa555a6.zip
Change struct members from camelcase to snake case
Diffstat (limited to 'src/graph.h')
-rw-r--r--src/graph.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/graph.h b/src/graph.h
index ca90bbe..22b4ae5 100644
--- a/src/graph.h
+++ b/src/graph.h
@@ -7,13 +7,13 @@ typedef struct Vertex Vertex;
typedef struct Graph Graph;
struct Vertex {
int id; // a number in [0; numVertices[
- LinkedList *outNeighbours; // A linked list of vertices.
- LinkedList *inNeighbours; // A linked list of vertices
+ LinkedList *out_neighbours; // A linked list of vertices.
+ LinkedList *in_neighbours; // A linked list of vertices
};
struct Graph {
- int numVertices;
- int numEdges;
+ int num_vertices;
+ int num_edges;
Vertex *vertices; // An array of numVertices vertices
};