(self, node)
Remove a CFGNode from self.graph as well as from the function manager (if it is the beginning of a function)

        :param CFGNode node: The CFGNode to remove from the graph.
        :return: None
Remove a CFGNode from self.graph as well as from the function manager (if it is the beginning of a function)
Remove a CFGNode from self . graph as well as from the function manager ( if it is the beginning of a function )
def _remove_node(self, node):
        """
        Remove a CFGNode from self.graph as well as from the function manager (if it is the beginning of a function)

        :param CFGNode node: The CFGNode to remove from the graph.
        :return: None
        """

        self.graph.remove_node(node)
        self._model.remove_node(node.addr, node)

        # We wanna remove the function as well
        if node.addr in self.kb.functions:
            del self.kb.functions[node.addr]

        if node.addr in self.kb.functions.callgraph:
            self.kb.functions.callgraph.remove_node(node.addr)
def _remove_node ( self , node ) : self . graph . remove_node ( node ) self . _model . remove_node ( node . addr , node ) # We wanna remove the function as well if node . addr in self . kb . functions : del self . kb . functions [ node . addr ] if node . addr in self . kb . functions . callgraph : self . kb . functions . callgraph . remove_node ( node . addr )