Robustness and optimization of complex networks by