A Calculus for Relating the Dynamics and Structure of Complex Biological Networks