Take the union of multiple neighborhood graphs
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, email@example.com
1 2 3 4 5