void * ds_xcalloc(size_t count, size_t size)
Replicates behaviour of calloc from libc, but fails on memory allocation errors.
size_t v
The number of vertices.
t_rbt * rbt_new(const t_type *key_type, const t_type *val_type)
Initializes a new empty tree.
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.
const t_type * type
The type of vertices in the graph.
A full representation of a data type, used to achieve polymorphism in the implementation of data stru...
t_graph * graph_new(const t_type *type)
Initializes a new graph with vertices of the specified type.
const t_type * g_type_array
A representation of the t_array data type.