Previous Page: CPXNETgetarcname First PageNext Page: CPXNETgetbase

CPXNETgetarcnodes


Description

The function CPXNETgetarcnodes() is used to access the "from nodes" and "to nodes" for a range of arcs in the network stored in a CPLEX network problem object.

Return Value

If the operation is successful, CPXNETgetarcnodes() returns the value 0; if not, it returns a nonzero value to indicate an error.

Synopsis

int CPXNETgetarcnodes (CPXENVptr env,
                       CPXNETptr net,
                       int *fromnode,
                       int *tonode,
                       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 *fromnode
Array in which to write the "from node" indices of the requested arcs. If NULL is passed, no "from node" indices will be retrieved. Otherwise the size of the array must be(end-begin+1).

int *tonode
Array in which to write the "to node" indices of the requested arcs. If NULL is passed, no "to node" indices will be retrieved. Otherwise the size of the array must be(end-begin+1).

int begin
Index of the first arc to get nodes for.

int end
Index of the last arc to get nodes for.

Example

status = CPXNETgetarcnodes (env, net, fromnode, tonode,
                            0, cur_narcs);

Previous Page: CPXNETgetarcname First PageNext Page: CPXNETgetbase