Function adj_matrix_element_space
Defined in File adj_matrix.h
Function Documentation
-
static inline size_t adj_matrix_element_space(size_t n_vertices, bool_t is_weighted)
Get the # of bytes needed for an adjacency matrix.
- Parameters:
n_vertices – # edges in the graph to be represented.
is_weighted – Is the graph weighted or not? Weighted graphs use doubles as the edge weights, and unweighted graphs use ints.
- Returns: