src/GraphCreation.c
/*
 * FUNCTION NAME: makeAdjacencyListNode
 *
 * DESCRIPTION:
 * Function creates a node that is in adjacency list node.
 *
 * RETURNS:
 * node - created node with filled values.
 */
FUNCTION NAME: makeAdjacencyListNode
DESCRIPTION:
Function creates a node that is in adjacency list node.

created node with filled values.
FUNCTION NAME : makeAdjacencyListNode DESCRIPTION : Function creates a node that is in adjacency list node . created node with filled values .
AdjacencyListNode_t* makeAdjacencyListNode(const char* to, double distance)
{
    AdjacencyListNode_t* node;
    node = (AdjacencyListNode_t*)malloc(sizeof(AdjacencyListNode_t));
    checkMemory(node);
    node->to = (char*)malloc(G_CITYS_NAME_LENGTH * sizeof(char));
    checkMemory(node->to);
    strcpy(node->to, to);
    node->distance = distance;
    node->next = NULL;
    return node;
}
AdjacencyListNode_t * makeAdjacencyListNode ( const char * to , double distance ) { AdjacencyListNode_t * node ; node = ( AdjacencyListNode_t * ) malloc ( sizeof ( AdjacencyListNode_t ) ) ; checkMemory ( node ) ; node -> to = ( char * ) malloc ( G_CITYS_NAME_LENGTH * sizeof ( char ) ) ; checkMemory ( node -> to ) ; strcpy ( node -> to , to ) ; node -> distance = distance ; node -> next = NULL ; return node ; }
FUNCTION NAME: makeAdjacencyListNode
 DESCRIPTION:
 Function creates a node that is in adjacency list node.
FUNCTION NAME : makeAdjacencyListNode DESCRIPTION : Function creates a node that is in adjacency list node .