Interplay between topology and social learning over weak graphs