Description
The function CPXNETdelarcs() is used to remove a range of arcs from the network stored in a CPLEX network problem object. The remaining arcs are renumbered starting at zero; their order is preserved. Even if removing arcs will disconnect some nodes from the rest of the network, these nodes will remain part of the network.Return Value
If the operation is successful, CPXNETdelarcs() returns the value 0; if not, it returns a nonzero value to indicate an error.Synopsis
int CPXNETdelarcs (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 arc to delete.
int endIndex of the last arc to delete.
status = CPXNETdelarcs (env, net, 10, 20);