get.neighbors function

Neighbors of an agent in a network

Neighbors of an agent in a network

Presents all neighbors of a given node.

get.neighbors(net, NodeID)

Arguments

  • net: The input network.
  • NodeID: The ID of the input node.

Returns

A vector.

Details

Neighbors of a node are nodes that directly connects to this node.

Examples

## Not run: x <- net.ring.lattice(12,4) get.neighbors(x,2) ## End(Not run)

Author(s)

Xu Dong

  • Maintainer: Nazrul Shaikh
  • License: GPL (>= 2)
  • Last published: 2020-12-01

Useful links