Checksfor the number of agriCat neighbors for each node within a specified radius.

check_neighbors(v, graph, agriCat, NNeighbors, radius)

Arguments

v

Node for check neighbors.

graph

Graph object representing the habitat.

agriCat

Category value in the graph to allocate.

NNeighbors

Number of neighbors to check for each AgriCat node.

radius

Radius within which to check for neighbors.

Value

Node if it meets the NNeighbors condition.