def move_to_next(self):
        try:
            self._curr = next(self._it)
        except __HOLE__:
            self._rewind()
            raise
dataset/ETHPy150Open networkx/networkx/networkx/algorithms/flow/utils.py/CurrentEdge.move_to_next