NO FRAMES

CPXNETdelarcs

int CPXPUBLIC CPXNETdelarcs(CPXCENVptr env, CPXNETptr net, int begin, int end)
Definition file: cplex.h
Include files: cplex.h

The routine CPXNETdelarcs is used to remove a range of arcs from the network stored in a network problem object. The remaining arcs are renumbered starting at zero; their order is preserved. If removing arcs disconnects some nodes from the rest of the network, the disconnected nodes remain part of the network.

Any solution information stored in the problem object is lost.

Example

 status = CPXNETdelarcs (env, net, 10, 20);

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.

begin

Index of the first arc to be deleted.

end

Index of the last arc to be deleted.

Returns:

The routine returns zero on success and nonzero if an error occurs.