yawning_titan.networks.network_creator.create_mesh#

yawning_titan.networks.network_creator.create_mesh(size=100, connectivity=0.7)[source]#

Create a mesh node environment.

Parameters:
  • size – The number of nodes in the environment.

  • connectivity – How connected each of the nodes should be (percentage chance for any node to be connected to any other).

Returns:

An instance of Network.