From 4a71e268c9cc5d7d9dd8a734ead6d657efa555a6 Mon Sep 17 00:00:00 2001 From: Mikkel Thestrup Date: Tue, 2 Dec 2025 10:25:30 +0100 Subject: Change struct members from camelcase to snake case --- src/graph.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/graph.h') 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 }; -- cgit v1.2.3-70-g09d2