get.neighborhood.Rdget.neighborhood returns the IDs of all vertices belonging to the in,
out, or combined neighborhoods of v within network x.
get.neighborhood(x, v, type = c("out", "in", "combined"), na.omit = TRUE)A vector containing the vertex IDs for the chosen neighborhood.
Note that the combined neighborhood is the union of the in and out neighborhoods – as such, no vertex will appear twice.
Butts, C. T. (2008). “network: a Package for Managing Relational Data in R.” Journal of Statistical Software, 24(2). doi:10.18637/jss.v024.i02
Wasserman, S. and Faust, K. 1994. Social Network Analysis: Methods and Applications. Cambridge: Cambridge University Press.