Graphs (or networks) and graph component calculations for spatial locations in 1D, 2D, 3D etc.
conda install r::r-spatgraphs