cyclomatic_number#

cyclomatic_number(domain, network_name)#

Calculate the cyclomatic number of a network. The cyclomatic number counts the number of elementary cycles.

Parameters:
domainobject

The domain containing the networks.

network_namestr

The name of the network within the domain.

Returns:
int

The cyclomatic number of the specified network.

Raises:
RuntimeError

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