Modeling and Inferring Gene Networks