generate_neighbours: Generate a sparse matrix of neighbours for patches (i.e....

View source: R/generate_neighbours.R

generate_neighboursR Documentation

Generate a sparse matrix of neighbours for patches (i.e. edges in the graph)

Description

Generate a sparse matrix of neighbours for patches (i.e. edges in the graph)

Usage

generate_neighbours(
  patches,
  calculate_border = TRUE,
  buffer_dist = 0.001 * hex_width
)

Arguments

patches

an object created by generate_patches

calculate_border

should the length of the common border to neighbours be calculated?

buffer_dist

a tolerance limit defining which borders are considered to be contiguous


ku-awdc/HexScape documentation built on Jan. 10, 2025, 5:24 p.m.