Description
The function CPXNETdelnodes() is used to remove a range of nodes from the network stored in a CPLEX network problem object. The remaining nodes are renumbered starting at zero; their order is preserved. All arcs incident to the nodes that are deleted are also deleted from the network.Return Value
If the operation is successful, CPXNETdelnodes() returns the value 0; if not, it returns a nonzero value to indicate an error.Synopsis
int CPXNETdelnodes (CPXENVptr env,
CPXNETptr net,
int begin,
int end);
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().
int beginIndex of the first node to delete.
int endIndex of the last node to delete.
status = CPXNETdelnodes (env, net, 10, 20);