1
0
mirror of https://github.com/gsi-upm/soil synced 2024-11-13 06:52:28 +00:00

Cambios menores

This commit is contained in:
JesusMSM 2016-04-13 18:10:43 +02:00
parent 0991696241
commit 967451e2d5

View File

@ -11,23 +11,10 @@ import settings
settings.init()
####################
# Network creation #
####################
if settings.network_type == 0:
G = nx.complete_graph(settings.number_of_nodes)
if settings.network_type == 1:
G = nx.barabasi_albert_graph(settings.number_of_nodes,3)
if settings.network_type == 2:
G = nx.margulis_gabber_galil_graph(settings.number_of_nodes, None)
# More types of networks can be added here
##############################
# Variables initializitation #
##############################
def init():
global networkStatus
networkStatus={} # Dict that will contain the status of every agent in the network