Modified NewNetwork() function

Modified the NewNetwork function to received the number of each type of
node and construct a default network.