yawning_titan.networks.network_creator.create_ring#

yawning_titan.networks.network_creator.create_ring(break_probability=0.3, ring_size=60)[source]#

Create a ring network.

Parameters:

break_probability – The probability that two nodes will not be

connected.

Parameters:

ring_size – The number of nodes in the network.

Returns:

An instance of Network.