ai_utils/search/frontier.py
def pop(self):
        """ Handles removal and returning of removed nodes from the frontier

        Note:
             This method returns the last element added to the list.
        Returns:
            Node which has been removed from the frontier
        """
        if self.is_empty():
            raise Exception("empty frontier")
        # get the last element in the frontier list
        node = self.frontier[-1]
        # return the frontier list without the removed node
        self.frontier = self.frontier[:-1]
        return node
 Handles removal and returning of removed nodes from the frontier

        Note:
             This method returns the last element added to the list.
        Returns:
            Node which has been removed from the frontier
        
Handles removal and returning of removed nodes from the frontier
Note:
This method returns the last element added to the list.
Handles removal and returning of removed nodes from the frontier Note : This method returns the last element added to the list .
def pop(self):
        if self.is_empty():
            raise Exception("empty frontier")
        node = self.frontier[-1]
        self.frontier = self.frontier[:-1]
        return node
def pop ( self ) : if self . is_empty ( ) : raise Exception ( "empty frontier" ) node = self . frontier [ - 1 ] self . frontier = self . frontier [ : - 1 ] return node
Handles removal and returning of removed nodes from the frontier
Note:
This method returns the last element added to the list.
Handles removal and returning of removed nodes from the frontier Note : This method returns the last element added to the list .
""" Handles removal and returning of removed nodes from the frontier

        Note:
             This method returns the last element added to the list.
        Returns:
            Node which has been removed from the frontier
        """ # get the last element in the frontier list # return the frontier list without the removed node
Node which has been removed from the frontier
Node which has been removed from the frontier
self