The context is an agent based model, the code example below is the base class for an agent. The agent has a "neighbors" attribute that contains a