powered by
Presents all neighbors of a given node.
get.neighbors(net, NodeID)
The input network.
The ID of the input node.
A vector.
Neighbors of a node are nodes that directly connects to this node.
# NOT RUN { x <- net.ring.lattice(12,4) get.neighbors(x,2) # }
Run the code above in your browser using DataLab