void graph_add_edge(t_graph *graph, const void *v1, const void *v2)
Adds an edge between two vertices in the graph.
size_t e
The number of edges.
t_rbt * adj
The set of arrays, where each arrays represents the adjacency of a given vertex.
A graph implemented using a set of arrays.
void * rbt_get(const t_rbt *rbt, const void *key)
Returns the value associated with a specified key.
void ds_exit_set(int err)
Set errno to the specified value, print the error message, and exit the process.
void array_append(t_array *array, const void *content)
Appends a copy the specified element to the end of this array.