pathConnected | R Documentation |
Function for finding nodes in a set connected to a vertex via paths in the original graph
pathConnected(graph, v, D, etype, dir, verbose = FALSE)
graph |
an object of class |
v |
vertex to check |
D |
set to look for paths to |
etype |
edge types to use |
dir |
integer vector of directions |
verbose |
logical: should additional information be provided? |
This function will look for paths in graph
from v
that only use the edge types in etype
and the directions specified,
and stop whenever a path hits something in D
. It then outputs the
subset of elements of D
that it hits.
Note that for directed edges, dir
defaults to 1, and so only
follows the canonical direction of the edge. Set to 0 if all directions are
valid.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.