gamma_index#

gamma_index(domain, network_name, is_planar=True)#

The gamma index is a simple measure of the density of the network.

Parameters:
domainobject

The domain containing the networks.

network_namestr

The name of the network to calculate the gamma index for.

is_planarbool, optional

Indicates if the network is planar, by default True.

Returns:
float

The gamma index of the network.

Raises:
RuntimeError

If the network name is not in the list of generated networks.