def METHOD_NAME(self, n_map):
    self.latch = n_map.get(self.latch, self.latch)
    for follow_type, value in self.follow.items():
        self.follow[follow_type] = n_map.get(value, value)
    self.loop_nodes = list({n_map.get(n, n) for n in self.loop_nodes})