tc_build_graph.Rd
tc_raster()
is a helper function that returns the raster template used to construct the graph. tc_adj_matrix()
is a helper function that returns the adjacency matrix that underlies the graph.
tc_build_graph(x, directed = TRUE, neighbours = 8, wrap_x = FALSE) tc_raster(x) tc_adj_matrix(x)
x | Raster: a raster layer defining the extent, projection, and resolution of the grid |
---|---|
directed | logical: if |
neighbours | integer: either 4 (each cell is connected to its cardinal neighbours) or 8 (each cell is connected to all 8 neighbouring cells) or 16 (8 neighbouring cells plus the next 8 that do not lie in cardinal or directly diagonal directions) |
wrap_x | logical: if |
An object of class tc_graph