Graph Convolutional Branch and Bound v1.0.0
A TSP solver that combines a graph convolutional network with a 1-Tree branch-and-bound.
|
The definition of the functions to manipulate the List. More...
#include "list_functions.h"
Go to the source code of this file.
Functions | |
List * | new_list (void) |
Create a new instance of a List. | |
void | del_list (List *list) |
Delete an instance of a List. | |
DllElem * | build_dll_elem (void *value, DllElem *next, DllElem *prev) |
bool | is_list_empty (List *list) |
Check if the List is empty. | |
size_t | get_list_size (List *list) |
Gets the size of the List. | |
void | add_elem_list_bottom (List *list, void *element) |
Adds an DllElem to the bottom of the List. | |
void | add_elem_list_index (List *list, void *element, size_t index) |
Adds an DllElem at the index indicated of the List. | |
void | delete_list_elem_bottom (List *list) |
Deletes the DllElem at the bottom of the List. | |
void | delete_list_elem_index (List *list, size_t index) |
Deletes the DllElem at the indicated index of the List. | |
void * | get_list_elem_index (List *list, size_t index) |
Retrieves a pointer to an DllElem from the List. | |
The definition of the functions to manipulate the List.
This is a double linked List implementation that we have realized for an university project.
Repo: https://gitlab.com/Stefa168/laboratorio-algoritmi-2018-19/
Definition in file list_functions.c.
void add_elem_list_bottom | ( | List * | list, |
void * | element | ||
) |
void add_elem_list_index | ( | List * | array, |
void * | element, | ||
size_t | index | ||
) |
Definition at line 46 of file list_functions.c.
void del_list | ( | List * | list | ) |
Delete an instance of a List.
This method deallocates only the data structure, NOT the data contained.
list | The List to delete. |
Definition at line 28 of file list_functions.c.
void delete_list_elem_bottom | ( | List * | list | ) |
void delete_list_elem_index | ( | List * | list, |
size_t | index | ||
) |
void * get_list_elem_index | ( | List * | list, |
size_t | index | ||
) |
size_t get_list_size | ( | List * | list | ) |
Gets the size of the List.
list | Pointer to the List to check. |
Definition at line 61 of file list_functions.c.
bool is_list_empty | ( | List * | list | ) |
Check if the List is empty.
list | Pointer to the List to check. |
Definition at line 56 of file list_functions.c.
List * new_list | ( | void | ) |
Create a new instance of a List.
Definition at line 18 of file list_functions.c.