Gravar-mail: Simulating the Dynamics of Scale-Free Networks via Optimization