oscillating between two energy states hopfield network with a small-world topology