This function takes multiple vertices, creates graphs of their neighborhoods (of order 1), and takes the union of those graphs.
The igraph graph object
Either a character or integer vector (vertex names or indices, respectively) for the vertices of interest
An igraph graph object containing the union of all edges and vertices in the neighborhoods of the input vertices; only the vertex attribute name will be present
Christopher G. Watson, firstname.lastname@example.org
1 2 3 4 5