def draw_maze(self, universe):
        if not self.size_changed:
            return
        self.canvas.delete("wall")
        for position, wall in universe.maze.items():
            model_x, model_y = position
            if wall:
                wall_item = Wall(self.mesh_graph, model_x, model_y)
                wall_item.wall_neighbours = []
                for dx in [-1, 0, 1]:
                    for dy in [-1, 0, 1]:
                        try:
                            if universe.maze[model_x + dx, model_y + dy]:
                                wall_item.wall_neighbours.append( (dx, dy) )
                        except __HOLE__:
                            pass
                wall_item.draw(self.canvas)
dataset/ETHPy150Open ASPP/pelita/pelita/ui/tk_canvas.py/UiCanvas.draw_maze