Relating the structure and dynamics of gene regulatory networks