CPXXNETgetarcnodes and CPXNETgetarcnodes

The routine CPXXNETgetarcnodes/CPXNETgetarcnodes is used to access the from-nodes and to-nodes for a range of arcs in the network stored in a network problem object.

int  CPXXNETgetarcnodes( CPXCENVptr env, CPXCNETptr net, CPXDIM * fromnode, CPXDIM * tonode, CPXDIM begin, CPXDIM end )

int  CPXNETgetarcnodes( CPXCENVptr env, CPXCNETptr net, int * fromnode, int * tonode, int begin, int end )

Description

The routine CPXXNETgetarcnodes/CPXNETgetarcnodes is used to access the from-nodes and to-nodes for a range of arcs in the network stored in a network problem object.

Arguments

env
A pointer to the CPLEX environment as returned by CPXXopenCPLEX/CPXopenCPLEX.
net
A pointer to a CPLEX network problem object as returned by CPXXNETcreateprob/CPXNETcreateprob.
fromnode
Array in which to write the from-node indices of the requested arcs. If NULL is passed, no from-node indices are retrieved. Otherwise, the size of the array must be (end-begin+1).
tonode
Array in which to write the to-node indices of the requested arcs. If NULL is passed, no to-node indices are retrieved. Otherwise, the size of the array must be (end-begin+1).
begin
Index of the first arc to get nodes for.
end
Index of the last arc to get nodes for.

Return

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

Example


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