Description
Given a name lname, this function returns the index of the node with that name (in the network stored in a CPLEX network problem object) to the integer pointed to by index_p.Return Value
If the operation is successful, CPXNETgetnodeindex() returns the value 0; if not, it returns a nonzero value to indicate an error.Synopsis
int CPXNETgetnodeindex (CPXENVptr env,
CPXNETptr net,
char *lname,
int *index_p);
CPXENVptr envThe pointer to the CPLEX environment as returned by one of the
CPXopenCPLEX() routines.
CPXNETptr netA pointer to a CPLEX network problem object as returned by
CPXNETcreateprob().
char *lnameName of the node to look for.
int *index_pA pointer to an integer in which the node index will be stored. If the function is successful,
*index_p will contain the index number upon function return, otherwise *index_p will be undefined.
status = CPXNETgetnodeindex (env, net, "root", &index);