def METHOD_NAME(self, v):
    # Take this vertex off the call stack
    self.vS.pop_front()
    self.iS.pop_front()
    # Update component information
    if self.root[v]:
        self.index -= 1
        while not self.vS.is_empty_back() and self.rindex[v] <= self.rindex[self.vS.top_back()]:
            w = self.vS.pop_back()
            self.rindex[w] = self.c
            self.index -= 1;
        self.rindex[v] = self.c
        self.c -= 1
    else:
        self.vS.push_back(v)