def step()

in gym_wikinav/envs/wikinav_env/web_graph.py [0:0]


    def step(self, action):
        """
        Make a navigation step with the given actions.
        """
        self._step(action)
        # Now cur_article_id contains the result of taking the actions
        # specified.

        stopped_now = self.cur_article_id == self.graph.stop_sentinel
        self._stopped = self._stopped or stopped_now

        # Did we just stop at the target page? (Use previous self._on_target
        # before updating `on_target`)
        success_now = self._on_target and stopped_now
        self._success = self._success or success_now
        self._on_target = self.cur_article_id == self._target_id

        self._num_steps += 1
        self._prepare()