src/GraphCreation.c
/*
 * FUNCTION NAME: removeConnectionsList
 *
 * DESCRIPTION:
 * Function frees memory from dynamically allocated char arrays.
 */
FUNCTION NAME: removeConnectionsList
DESCRIPTION:
Function frees memory from dynamically allocated char arrays.
FUNCTION NAME : removeConnectionsList DESCRIPTION : Function frees memory from dynamically allocated char arrays .
void removeConnectionsList(ConnectionsList_t* connections_list)
{
    ConnectionsListNode_t* temp;
    temp = connections_list->head;
    while (temp != NULL) {
        connections_list->head = connections_list->head->next;
        free(temp->from);
        free(temp->to);
        free(temp);
        temp = connections_list->head;
    }
}
void removeConnectionsList ( ConnectionsList_t * connections_list ) { ConnectionsListNode_t * temp ; temp = connections_list -> head ; while ( temp != NULL ) { connections_list -> head = connections_list -> head -> next ; free ( temp -> from ) ; free ( temp -> to ) ; free ( temp ) ; temp = connections_list -> head ; } }
FUNCTION NAME: removeConnectionsList
 DESCRIPTION:
 Function frees memory from dynamically allocated char arrays.
FUNCTION NAME : removeConnectionsList DESCRIPTION : Function frees memory from dynamically allocated char arrays .