yawning_titan.networks.network_creator.create_p2p#
- yawning_titan.networks.network_creator.create_p2p(group_size=5, inter_group_connectivity=0.1, group_connectivity=1)[source]#
Create a two group network.
You can modify the connectivity between the two groups and the connectivity within the groups.
- Parameters:
group_size – The amount of nodes in each group (before random variance).
inter_group_connectivity – The connectivity between the two groups.
group_connectivity – The connectivity within the group.
- Returns:
An instance of
Network
.