Metastable configurations of spin models on random graphs.