Skip to contents

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 agent points 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