src/GraphCreation.c
/*
 * FUNCTION NAME: makeAdjacencyList
 *
 * DESCRIPTION:
 * Function creates a adjacency list node and fills it with
 * proper values.
 *
 * RETURNS:
 * node - created node.
 */
FUNCTION NAME: makeAdjacencyList
DESCRIPTION:
Function creates a adjacency list node and fills it with
proper values.

created node.
FUNCTION NAME : makeAdjacencyList DESCRIPTION : Function creates a adjacency list node and fills it with proper values . created node .
AdjacencyList_t* makeAdjacencyList(const char* from)
{
    AdjacencyList_t* node;
    node = (AdjacencyList_t*)malloc(sizeof(AdjacencyList_t));
    checkMemory(node);
    node->from = (char*)malloc(G_CITYS_NAME_LENGTH * sizeof(char));
    checkMemory(node->from);
    node->head = NULL;
    node->next = NULL;
    strcpy(node->from, from);
    return node;
}
AdjacencyList_t * makeAdjacencyList ( const char * from ) { AdjacencyList_t * node ; node = ( AdjacencyList_t * ) malloc ( sizeof ( AdjacencyList_t ) ) ; checkMemory ( node ) ; node -> from = ( char * ) malloc ( G_CITYS_NAME_LENGTH * sizeof ( char ) ) ; checkMemory ( node -> from ) ; node -> head = NULL ; node -> next = NULL ; strcpy ( node -> from , from ) ; return node ; }
FUNCTION NAME: makeAdjacencyList
 DESCRIPTION:
 Function creates a adjacency list node and fills it with
 proper values.
FUNCTION NAME : makeAdjacencyList DESCRIPTION : Function creates a adjacency list node and fills it with proper values .