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

        Note:
             This method returns the first element added to the list.

        Returns:
            Node which has been removed from the frontier
        """
        if self.is_empty():
            raise Exception("empty frontier")
        # get the first node in the frontier
        node = self.frontier[0]
        # set new frontier as old frontier without the first element
        self.frontier = self.frontier[1:]
        return node
Handles removal and returning of removed nodes from the frontier

        Note:
             This method returns the first 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 first element added to the list.
Handles removal and returning of removed nodes from the frontier Note : This method returns the first element added to the list .
def pop(self):
        if self.is_empty():
            raise Exception("empty frontier")
        node = self.frontier[0]
        self.frontier = self.frontier[1:]
        return node
def pop ( self ) : if self . is_empty ( ) : raise Exception ( "empty frontier" ) node = self . frontier [ 0 ] self . frontier = self . frontier [ 1 : ] return node
Handles removal and returning of removed nodes from the frontier
Note:
This method returns the first element added to the list.
Handles removal and returning of removed nodes from the frontier Note : This method returns the first element added to the list .
"""Handles removal and returning of removed nodes from the frontier

        Note:
             This method returns the first element added to the list.

        Returns:
            Node which has been removed from the frontier
        """ # get the first node in the frontier # set new frontier as old frontier without the first element
Node which has been removed from the frontier
Node which has been removed from the frontier
self