fs.surface.vertex.neighbors | R Documentation |
This is a faster replacement for mesh.vertex.neighbors
that requires the optional dependency package 'igraph' or 'Rvcg'.
fs.surface.vertex.neighbors(
surface,
nodes = NULL,
order = 1L,
simplify = TRUE,
include_self = FALSE
)
surface |
an fs.surface instance as returned by |
nodes |
the source vertex. Passed on to |
order |
integer, the max graph distance of vertices to consider neighbors (number of neighborhood rings). Passed on to |
simplify |
logical, whether to return only an integer vector if the 'nodes' parameter has length 1 (instead of a list where the first element is such a vector). |
include_self |
logical, whether to include vertices in their own neighborhood |
named list of integer vectors (see igraph::neighborhood
), unless 'simplify' is TRUE, see there for details.
If you intend to call several functions on the igraph, it is faster to construct it with fs.surface.to.igraph
and keep it.
The fs.surface.as.adjacencylist
function computes the 1-ring neighborhood for the whole graph.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.