Top  Previous  Next

This method 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. It can typically be an island without a ferry or a similar situation.


This is done with IgnoreOneWay set to true temporarily, so one-way restrictions may in fact make even more links in-accessible. See function SubNetEx on how to detect such situations.


Similarly any limits are also temporarily set to 0 while doing the calculations.


IA returns the subnet ID for each link, while the method returns the number of subnets.


0 = main net

1, 2, 3... = sub nets


The main net is defined as the one with the most links.


See also SubNetLimits, SubNetEx and SubNetSimple


Syntax: SubNet(var IA: TIntegerArray): integer