neighborsOf

fun neighborsOf(agent: A): Set<A>(source)

All neighbors of agent. For a directed network this is out-neighbors only; for undirected it's all incident agents. Returns an empty set for an agent with no edges.