graph_neighborhood_multiple: Take the union of multiple neighborhood graphs

Description Usage Arguments Value Author(s) See Also Examples

Description

This function takes multiple vertices, creates graphs of their neighborhoods (of order 1), and takes the union of those graphs.

Usage

1

Arguments

g

The igraph graph object

vs

Either a character or integer vector (vertex names or indices, respectively) for the vertices of interest

Value

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

Author(s)

Christopher G. Watson, cgwatson@bu.edu

See Also

make_ego_graph

Examples

1
2
3
4
5
## Not run: 
subg <- graph_neighborhood_multiple(g1[[N]], c(24, 58))
subg <- graph_neighborhood_multiple(g1[[N]], c('lPCUN', 'rPCUN'))

## End(Not run)


Search within the brainGraph package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.