gamma_index#
- gamma_index(domain, network_name, is_planar=True)#
A measure of connectivity that considers the relationship between the number of observed links and the number of possible links 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:
- 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.