Gravar-mail: Fitting structure to function in gene regulatory networks