Hopfield network for different topologies --i.e., small-world, scale-free, erdos-renyi-