get.neighbors {fastnet} | R Documentation |
Presents all neighbors of a given node.
get.neighbors(net, NodeID)
net |
The input network. |
NodeID |
The ID of the input node. |
Neighbors of a node are nodes that directly connects to this node.
A vector.
Xu Dong
## Not run:
x <- net.ring.lattice(12,4)
get.neighbors(x,2)
## End(Not run)