On the algebraic connectivity of graphs