SubNet

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.

 

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 part of the network with node 1.

 

See also SubNetEx

 

Syntax: SubNet(var IA: TIntegerArray): integer