Gravar-mail: Topological determinants of protein folding