create network of agents

when networks are created using the network generator, the nodes are not the objects I need (class Agent)

first create the network using the generator, get the edgelist, and then create the agents and assign edges between agents in a new network where nodes are now agents