Facilitates recursive calls get neighbors
Usage
nx(xx, ni, include_self = T)
Arguments
- xx
a list of neighbor indices (nb-style)
- ni
integer; neighbor order
- include_self
logical; whether to include each node itself
Value
a list of neighbor index vectors
Examples
xx <- list(c(2, 3), c(1, 3), c(1, 2))
nx(xx, ni = 1, include_self = TRUE)
#> Error in nx(xx, ni = 1, include_self = TRUE): could not find function "nx"