# Neighborhoods

“How are neighborhoods defined?”

## Types of Neighborhoods

Types of neighborhood are used:

`Space`

→`Lattice`

→`Neighborhood`

: This is the default Neighborhood for the lattice. It ist used by the`NeighborhoodReporter`

and fallback for all other Neighborhood definitions.`CPM`

→`MonteCarloSampler`

→`Neighborhood`

: Updates for the CPM simulation are chosen from this Neighborhood.`CPM`

→`ShapeSurface`

→`Neighborhood`

: Cell surface length and interface lengths of cell interactons are approximated using this kernel.

## Order and Distance

The **number of neighboring nodes to include** can be specified in **two different units**.

### Distance

All neighboring nodes of distance less or equal the given distane are included in the neighborhood.

### Order

The “order” of a neighborhood is a measure of neighborhood size that expands in an alternating way axially and radially.

In a square lattice:

**Order 1**: 4-member, axial (*von Neumann*)**Order 2**: 8-member, radial (*Moore*)**Order 3**: 12-member, axial- …