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);
CPXENVptr envThe pointer to the CPLEX environment as returned by one of the
CPXopenCPLEX() routines.
CPXNETptr netA pointer to a CPLEX network problem object as returned by
CPXNETcreateprob().
int *fromnodeArray 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 *tonodeArray 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 beginIndex of the first arc to get nodes for.
int endIndex of the last arc to get nodes for.
status = CPXNETgetarcnodes (env, net, fromnode, tonode,
0, cur_narcs);