NO FRAMES

CPXNETgetnodeindex

int CPXPUBLIC CPXNETgetnodeindex(CPXCENVptr env, CPXCNETptr net, const char * lname_str, int * index_p)
Definition file: cplex.h
Include files: cplex.h

The routine CPXNETgetnodeindex returns the index of the specified node (in the network stored in a network problem object) in the integer pointed to by index_p.

Example

 status = CPXNETgetnodeindex (env, net, "root", &index);

Parameters:

env

A pointer to the CPLEX environment as returned by CPXopenCPLEX.

net

A pointer to a CPLEX network problem object as returned by CPXNETcreateprob.

lname_str

Name of the node to look for.

index_p

A pointer to an integer to hold the node index. If the routine is successful, *index_p contains the index number; otherwise, *index_p is undefined.

Returns:

The routine returns zero on success and nonzero if an error occurs.