get.neighbors {fastnet}R Documentation

Neighbors of an agent in a network

Description

Presents all neighbors of a given node.

Usage

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

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

[Package fastnet version 1.0.0 Index]