CPXXNETgetnumnodes and CPXNETgetnumnodes

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

CPXDIM  CPXXNETgetnumnodes( CPXCENVptr env, CPXCNETptr net )

int  CPXNETgetnumnodes( CPXCENVptr env, CPXCNETptr net )

Description

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

Arguments

env
A pointer to the CPLEX environment as returned by CPXXopenCPLEX/CPXopenCPLEX.
net
A pointer to a CPLEX network problem object as returned by CPXXNETcreateprob/CPXNETcreateprob.

Return

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.

Example


 cur_nnodes = CPXNETgetnumnodes (env, net);