On the Robustness of Complex Networks by Using the Algebraic Connectivity