neighbors: neighbors of an agent in a network

Description Usage Arguments Details Value Author(s) Examples

Description

Present all neighbors of a give agent in a network.

Usage

1
neighbors(net, node)

Arguments

net

The input network.

node

The input node.

Details

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

Value

A vector.

Author(s)

Xu Dong, Nazrul Shaikh.

Examples

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

networkgroupR/fastnet documentation built on May 23, 2019, 1:32 p.m.