'Return an iterator over predecessor nodes of n.'

def predecessors(self, n):

    try:
        return iter(self._pred[n])
    except KeyError:
        raise NetworkXError(('The    node    %s    is    not    in    the    digraph.' % (n,)))
