def METHOD_NAME(self, block):
    if self.out_graph is None:
        self.out_graph = self._graph
    if block in self.out_graph:
        self.out_graph.remove_node(block)
    if block.addr in self._blocks_by_addr and block in self._blocks_by_addr[block.addr]:
        self._blocks_by_addr[block.addr].remove(block)
        del self._blocks_by_addr_and_idx[(block.addr, block.idx)]