create network and link neurons