NO FRAMES

CPXNETgetarcnodes

public int CPXNETgetarcnodes(CPXCENVptr env, CPXCNETptr net, int * fromnode, int * tonode, int begin, int end)
Definition file: cplex.h

The routine 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.

Example

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

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.

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.

Returns:

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