diff options
Diffstat (limited to '')
| -rw-r--r-- | src/graph.h (renamed from src/Graph.h) | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Graph.h b/src/graph.h index 3e7cfaa..ca90bbe 100644 --- a/src/Graph.h +++ b/src/graph.h @@ -1,7 +1,7 @@ #ifndef GRAPH_H #define GRAPH_H -#include "LinkedList.h" +#include "linked_list.h" typedef struct Vertex Vertex; typedef struct Graph Graph; @@ -20,21 +20,21 @@ struct Graph { // Allocates and constructs a new graph with n vertices. // Returns a pointer to the new graph, or NULL on error. // Post: the caller owns the graph. -Graph *Graph_new(int n); +Graph *graph_new(int n); // Adds an edge from the i'th to the j'th vertex (0-indexed). -void Graph_addEdge(Graph *g, int i, int j); +void graph_add_edge(Graph *g, int i, int j); // Reads a graph from the given file and returns a newly // constructed Graph representing it. // Returns a pointer to the read graph, or NULL on error. // Post: the caller owns the graph. -Graph *Graph_read(const char *filename); +Graph *graph_read(const char *filename); // Deallocates the given graph and all its associated memory. -void Graph_delete(Graph *g); +void graph_delete(Graph *g); // Prints some useful information about the given graph. -void Graph_print(Graph *g); +void graph_print(Graph *g); #endif // GRAPH_H |