def create_walk_graph(self, walk_graph):
        self.walk_graph = walk_graph.copy()
        two_way_line_options = dict(
            fill='#00ff00',
            width=2,
            tags='walk_graph')
        one_way_line_options = dict(
            fill='#ff0000',
            width=2,
            tags='walk_graph')
        def tile_center(coord):
            return [(coord.x + 0.5) * self.tile_size_x, (coord.y + 0.5) * self.tile_size_x]
        for y in range(self.tile_map.height):
            for x in range(self.tile_map.width):
                coord = Coord(x, y)
                can_reach = walk_graph.get(coord)
                if not can_reach: continue
                for other_coord in can_reach:
                    two_way = (walk_graph.get(other_coord, []) in coord)
                    if two_way:
                        self.canvas.create_line(*(tile_center(coord) + tile_center(other_coord)),
                            **two_way_line_options)
                    else:
                        self.canvas.create_line(*(tile_center(coord) + tile_center(other_coord)),
                            **one_way_line_options)
dataset/ETHPy150Open adurdin/platformgen/gui.py/TileMapGUI.create_walk_graph/swapped operands of `in`