Simulate Congruence Class Model for Networks