Function SubNet: integer;
Calculates which part of a network is a subnet. A subnet is defined as a part of the network, which isn't connected to the rest of the network. This is done as if all streets can be travelled in both directions, so one-way restrictions may in fact make even more streets in-accessible. See function SubNetEx on how to detect such situations.
The main net is defined as the part of the network, where the node with highest valency is found (node number 1).
The result for each link can be saved with ResultSaveLink or ResultGetLink:
0 = main net
1,2,3... = sub nets
Returns the number of subnets.
Possible error codes: -10 -16 -40 -41 -43
Versions: Pro
ActiveX / VCL / CLX component: RWcalc