src/GraphCreation.c
/*
 * FUNCTION NAME: removeAdjacencyListNodes
 *
 * DESCRIPTION:
 * Function removes every dynamically allocated
 * variable that is in node.
 */
FUNCTION NAME: removeAdjacencyListNodes
DESCRIPTION:
Function removes every dynamically allocated
variable that is in node.
FUNCTION NAME : removeAdjacencyListNodes DESCRIPTION : Function removes every dynamically allocated variable that is in node .
void removeAdjacencyListNodes(AdjacencyListNode_t* head)
{
    AdjacencyListNode_t *current, *previous;
    for (current = head; current != NULL;) {
        previous = current;
        current = current->next;
        free(previous->to);
        free(previous);
    }
}
void removeAdjacencyListNodes ( AdjacencyListNode_t * head ) { AdjacencyListNode_t * current , * previous ; for ( current = head ; current != NULL ; ) { previous = current ; current = current -> next ; free ( previous -> to ) ; free ( previous ) ; } }
FUNCTION NAME: removeAdjacencyListNodes
 DESCRIPTION:
 Function removes every dynamically allocated
 variable that is in node.
FUNCTION NAME : removeAdjacencyListNodes DESCRIPTION : Function removes every dynamically allocated variable that is in node .