NO FRAMES

CPXNETgetnumarcs

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

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

Example

 cur_narcs = CPXNETgetnumarcs (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 arcs stored in a network problem object. If an error occurs, 0 is returned and an error message is issued.