Get a tibble of direct neighbors
Usage
network_get_neighbors(agent, abm, only_use_outdegree = is_directed(abm))Arguments
- agent
the agent for whom the neighbors should be collected (
me)- abm
the whole environment model
- only_use_outdegree
if true (default in directed models) then neighbors are only considered neighbors if
agentpoints at them, not vice versa (in undirected models, this parameter is ignored)
Value
a tibble of neighboring agents in no particular order with their characteristics and variables set
See also
Other utilities:
get_characteristic(),
get_random_agent(),
get_variable(),
grid_get_free_neighboring_spots(),
grid_get_free_spots(),
grid_get_neighbors(),
grid_move(),
network_connect(),
network_spread(),
remove_agent(),
stop_abm()