ParallelLinks
Previous  Top  Next

Function ParallelLinks: integer;

Identifies group of links, which start and end at the same two nodes. These might give problems in some networking algorithms ("emme/2
" for instance).

RW Net has no problem with parallel links, unless you want to apply a turn restrictions from one parallel link to another and only want it at one of the 2 nodes they have in common.

The function returns 0, if no errors occured.

Return values from the computations:
0: normal links
1: Single link, which start and end at the same node (loop).
>=10: Shortest link in group
<=-10: Other links in group

Three parallel links would have the value 10 (the shortest) and -10 for the other two. The next group of parallel links has value 11 / -11 and then 12 / -12 etc.

The result can be saved with ResultSaveLink / ResultGetLink.

Possible error codes: -10 -40 -41 -43
Versions: Pro
ActiveX / VCL / CLX component: RWcalc