implemented exponential network and erdos renyie network