def setup_network(self):
    self.setup_nodes()
    for i in range((self.num_nodes - 1)):
        connect_nodes_bi(self.nodes, i, (i + 1))
    self.sync_all()
def setup_network(self):
    self.setup_nodes()
    for i in range((self.num_nodes - 1)):
        connect_nodes_bi(self.nodes, i, (i + 1))
    self.sync_all()