grow_nodes {rsemmed} | R Documentation |
Grow a set of nodes into its first order neighborhood.
grow_nodes(graph, nodes)
graph |
The SemMed graph |
nodes |
A vertex sequence ( |
grow_nodes
obtains the set of immediate neighbors of the
supplied nodes using igraph::ego
. Unlike ego
,
grow_nodes
flattens the result from a list to an ordinary
vertex sequence and removes the original search nodes.
A vertex sequence of nodes in the neighborhood (not including the original nodes)
find_nodes
for filtering out irrelevant
nodes from this set.
data(g_mini) node_cortisol <- find_nodes(g_mini, name = "hypercortisolemia") nbrs <- grow_nodes(g_mini, node_cortisol)