Obtain the Neighborhood of a Given Vertex
get.neighborhood returns the IDs of all vertices belonging to the in, out, or combined neighborhoods of
v within network
an object of class
a vertex ID
the neighborhood to be computed
logical; should missing edges be ignored when obtaining vertex neighborhoods?
Note that the combined neighborhood is the union of the in and out neighborhoods – as such, no vertex will appear twice.
A vector containing the vertex IDs for the chosen neighborhood.
Carter T. Butts firstname.lastname@example.org
Butts, C. T. (2008). “network: a Package for Managing Relational Data in R.” Journal of Statistical Software, 24(2). http://www.jstatsoft.org/v24/i02/
Wasserman, S. and Faust, K. 1994. Social Network Analysis: Methods and Applications. Cambridge: Cambridge University Press.
1 2 3 4 5 6 7 8 9
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.