make_ego_brainGraph: Create a graph of the union of multiple vertex neighborhoods

Description Usage Arguments Value Author(s) See Also Examples

View source: R/create_graphs.R

Description

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

Usage

1

Arguments

g

An 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, [email protected]

See Also

make_ego_graph

Other Graph creation functions: make_brainGraph, make_empty_brainGraph, make_glm_brainGraph, make_mediate_brainGraph, make_nbs_brainGraph

Examples

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

## End(Not run)

brainGraph documentation built on May 29, 2018, 9:03 a.m.