get_neighbors: Get neighbor nodes

Description Usage Arguments Value

View source: R/input.R

Description

Given an igraph network object and vector of node names, this function returns the set of unique neighbor nodes considering both ingoing and outgoing edges (the closed neighbourhood node set).

Usage

1
get_neighbors(net, nodes)

Arguments

net

igraph object

nodes

character vector of node names

Value

a character vector of all the unique neighbors of the given nodes in the net graph.


emba documentation built on Jan. 7, 2021, 9:09 a.m.