Previous Page: CPXNETdelarcs First PageNext Page: CPXNETdelset

CPXNETdelnodes


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.

Any solution information that may be stored in the CPLEX network problem object will be lost.

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);

Arguments


CPXENVptr env
The pointer to the CPLEX environment as returned by one of the CPXopenCPLEX() routines.

CPXNETptr net
A pointer to a CPLEX network problem object as returned by CPXNETcreateprob().

int begin
Index of the first node to delete.

int end
Index of the last node to delete.

Example

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

Previous Page: CPXNETdelarcs First PageNext Page: CPXNETdelset