spacenet.global_metrics.gamma_index#

spacenet.global_metrics.gamma_index(spatial_network, is_planar=True)#

The Gamma Index is a fundamental metric that measures a network’s connectivity by comparing the actual number of edges to the maximum possible number of edges. A value close to 0 indicates poor connectivity, with relatively few connections. A value close to 1 indicates high connectivity, approaching the theoretical maximum for a planar network.

Parameters:
spatial_networknetworkx.Graph

The spatial network for which to compute the gamma index.

is_planarbool, optional

Indicates if the network is planar, by default True.

Returns:
gammafloat

The gamma index of the network.