fs.surface.to.igraph {fsbrain} | R Documentation |
Create igraph undirected graph from a brain surface mesh.
Description
Create igraph undirected graph from a brain surface mesh.
Usage
fs.surface.to.igraph(surface)
Arguments
surface |
an fs.surface instance as returned by |
Value
igraph::graph instance
Examples
## Not run:
# Find the one-ring neighbors of vertex 15 on the fsaverage left hemi:
sf = subject.surface(fsaverage.path(T), "fsaverage", "white", "lh");
g = fs.surface.to.igraph(sf);
igraph::neighborhood(g, order = 1, nodes = 15);
## End(Not run)
[Package fsbrain version 0.5.5 Index]