NO FRAMES

CPXNETgetnumnodes

int CPXPUBLIC CPXNETgetnumnodes(CPXCENVptr env, CPXCNETptr net)
Definition file: cplex.h
Include files: cplex.h

The routine CPXNETgetnumnodes is used to access the number of nodes in a network stored in a network problem object.

Example

 cur_nnodes = CPXNETgetnumnodes (env, net);

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.

Returns:

The routine returns the number of network nodes stored in a network problem object. If an error occurs, 0 is returned and an error message is issued.