'The predeccessors of the ego node.'

def two_hop_pred(self, Gx, Gx_node, core_x, pred):

    return all((self.one_hop(Gx, p, core_x, self.preds(Gx, core_x, p), self.succs(Gx, core_x, p, Gx_node)) for p in pred))
