NodeListSet

Top  Previous  Next

Function NodeListSet(index, node: integer): integer;

 

Use this function to enter a list of nodes, which is input to a lot of other functions.

 

This can e.g. be a list of nodes to visit in optimal order (function TSP2).

 

NodeListSet(1,100) sets the first node to be node #100. All functions taking the nodelist as input, expects you to start with position 1 in the list.

 

If NodeListLimit returns 3000 and you call NodeListSet(3001,node), the length of the list will automatically be increased by 100 more nodes every time the current limit is exceeded. If you know you need 10000 nodes, then start by calling NodeListSet(10000,node) - that will be slightly more efficient.

 

NOTE: Not all functions relying upon the nodelist may perform well, if you enter many nodes into the list.

 

Possible error codes: -10 -30 -43

Versions: Standard Pro

ActiveX / VCL / CLX component: RWcalc