make a general network model