Gravar-mail: How modular structure can simplify tasks on networks: parameterizing graph optimization by fast local community detection