Neighborhood definition

The numbering of the neighbors in the different neighborhoods is consistent for small neighborhoods: the neighbors in the Moore neighborhood which are also in the von-neumann neighborhood (R=1) have identical positions in the neighbor list. for visualizing the numbers, use this automaton, which after one step, displays the inverse of the neighborhood, i.e., the position at which a cell found the center cell.