Network.count_crossings

Network.count_crossings()[source]

Count the number of crossings (pairs of crossing edges) in the network.

Parameters

network (Network) – A network object.

Returns

int – The number of crossings.

Notes

This algorithm assumes that the network lies in the XY plane.