31#ifndef SOCIAL_NETWORK_QUEUE_H_
32#define SOCIAL_NETWORK_QUEUE_H_
The helper functions that are used for handling and interacting with graphs and their vertices.
#define MAX_GRAPH_VERTEX_COUNT
The maximum number of vertices a graph can contain.
Definition graph.h:41
char Vertex[MAX_VERTEX_LABEL_LENGTH+1]
A string-labeled vertex in a graph.
Definition graph.h:44
void enqueue(Queue *const queue, const Vertex element)
Adds an element to the rear of the queue.
void dequeue(Queue *const queue)
Removes the element at the front of the queue.
bool is_empty(const Queue *const queue)
Checks if a queue contains contains no queueing elements.
void peak(Queue *const queue, Vertex element)
Gets the element at the front of the queue.
bool is_full(const Queue *const queue)
Checks if a queue contains the maximum number of elements.
void initialize_queue(Queue *const queue)
Initializes a queue’s data and indexes to their default values.
A collection implementing the queue data structure using an array.
Definition queue.h:44
size_t rear
The index of the last element in the queue.
Definition queue.h:50
Vertex data[MAX_GRAPH_VERTEX_COUNT]
The ordered data contained in the queue.
Definition queue.h:46
size_t front
The index of the first element in the queue.
Definition queue.h:48