def init_world(self): self.g = construct_graph(self.opt) for a in self.agents: self.g.new_agent(a.id)