get.neighbors: Neighbors of an agent in a network

Description Usage Arguments Details Value Author(s) Examples

View source: R/get.neighbors.R

Description

Presents all neighbors of a given node.

Usage

1
get.neighbors(net, NodeID)

Arguments

net

The input network.

NodeID

The ID of the input node.

Details

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

Value

A vector.

Author(s)

Xu Dong

Examples

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

fastnet documentation built on Jan. 13, 2021, 5:28 p.m.