def new_network(self, model):
        self.node_dict.clear()
        self.link_dict.clear()
        self.dragNode = None
        self.dragImage = None
        dummy = self.queue.get()    # empties the list