Generative models for networks with conditionally independent