Struct adj_matrix_params

Struct Documentation

struct adj_matrix_params

Adjacency matrix initialization parameters.

Public Members

dptr_t *elements

Pointer to application-allocated space for storing the adj_matrix data. Ignored unless RCSW_NOALLOC_DATA is passed.

size_t elt_size

Size of elements in bytes.

uint32_t flags

Configuration flags. See adj_matrix::flags for valid flags.

size_t n_vertices

Initial # of vertices for graph, for space allocation.

bool_t is_directed

Is the graph directed or undirected?

bool_t is_weighted

Are the graph edges weighted? If a graph is undirected it cannot be weighted.