I'm trying to describe a grid and I want to say that the adjacent grid square is chosen if it's horizontally or vertically adjacent, but not diagonally adjacent, to the current grid square.
I was thinking maybe, laterally adjacent?
I'm trying to describe a grid and I want to say that the adjacent grid square is chosen if it's horizontally or vertically adjacent, but not diagonally adjacent, to the current grid square.
I was thinking maybe, laterally adjacent?
I've seen both "Orthogonally Adjacent" (Adjacent at right angles) and "Edge Adjacent" (Adjacent across edges rather than corners) used. They do mean slightly different things, but it's only relevant when dealing with something other than a regular rectangular grid.
Since measuring distance in this kind of topology is called "Manhattan distance" you might also try "Manhattan adjacent" although I've never seen that usage myself and it would probably require some explanation before using it.
"edge adjacent" "corner adjacent"
This PDF about Quadtree colouring makes the distinction in those terms arxiv.org/pdf/cs/9907030.pdf
Consider Orthogonal
Orthogonal - intersecting or lying at right angles
Abut: an area that is next to and has a common boundary with.
His land abuts mine
Please consider:
bor·der noun : a line separating one country or state from another; a boundary between places
(or bordering)
from m-w.com
Geospatially (not necessesarily mathematically) anything that was diagonal would share a point, which is commonly considered not a line. E.g. Utah borders Colorado and Arizona but not New Mexico.
border adjacent
vs edge adjacent
.
Commented
Jan 12, 2022 at 3:16
If you want to say that the adjacent grid square is chosen if it's horizontally or vertically adjacent, but not diagonally adjacent to the current grid square, why not say that it's "nondiagonally adjacent?"
I think that the best term is rectilinearly adjacent. Compared to orthogonal, rectilinear has a stronger connotation of being axially aligned.
In this case, I like the term axial to describe a direction that is along the horizontal or vertical axis relative to the current position.
Axial - situated around, in the direction of, on, or along an axis.
Also consider
coterminous or conterminous: having the same or coincident boundaries
essentially, synonymous with bordering.
It's not one word, and I'm not sure how many people would follow it, but from cellular automata, you could refer to "squares that are in the von Neumann neighborhood of the current square".
You should probably read the Wikipedia article about pixel connectivity.
The case you describe is called 4-connectivity, so the adjective you seek is 4-connected.
You can also say they are cardinally adjacent.
The cardinal directions are North, South, East and West, which conventionally map to up, down, right and left in 2D images. A Google search for the term "cardinally adjacent" has about 7,500 results at the time of writing, so this is a somewhat common term, although "orthogonally adjacent" has about 25,000, making it about three times as common.
I've been using the word "lateral" to describe this. It's defined as "Of , relating to, or situated at or on the side"
Grids in the form of algebraic matrices are ubiquitous in machine learning and statistical models, with many ways to describe the resulting relationships.
One drawback to their use is that the distances between the cells of a grid are typically fixed.
Network models are one approach to compensating for this fixity insofar as relative distances are approximated based on the function used...with the caveat that there are literally dozens of distance metrics, most orthogonal (not correlated) and others oblique (allows for correlation).
I can't find a specific example of terminology which answers your query but the field is rife with possibilities.
Check out this IBM white paper for an intro but note that network models are a large and burgeoning area of study.
https://www.ibm.com/docs/en/spss-modeler/18.0.0?topic=analysis-about-social-network
We suggest "edge-orthogonal" here: https://forum.sagittal.org/viewtopic.php?p=4796
You might specify that the adjacent grid square is chosen if it's above, below or beside the location but not oblique to it. That might use enough common words for them to make sense of it.