let neighbourhoods = match topology_boundary with | Types.Periodic -> ring () | Types.Bounded -> bounded ()