nearadjacent
Nearadjacent is a term used to describe elements that are close to each other within a specified notion of proximity, but are not directly adjacent. It is used in discussions of locality and neighborhood in sequences, graphs, and spatial data. The term is not tied to a single formal discipline, but rather to a family of proximity relations defined by a parameter that bounds how far apart two elements can be to count as nearadjacent.
In a linear sequence, two elements a_i and a_j (i ≠ j) are nearadjacent if the index distance
In a graph, nearadjacency can be defined via the shortest-path distance. Two vertices u and v are
Applications of nearadjacent relations include analyzing locality in algorithms, clustering nearby events in time series, cache-aware
See also: adjacency, neighborhood, locality, proximity, k-nearest neighbor, graph distance.