HF RL Explorer

Refactor neighbors

Refactor neighbors: a task in lifesci-single-cell-spatial-swe-envs-nocap (Harbor dataset). Title: Refactor neighbors

The task

**Title:** Refactor `neighbors`

Part of scalingX/lifesci-single-cell-spatial-swe-envs-nocap.