Learn R Programming

emba (version 0.1.8)

get_neighbors: Get neighbor nodes

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

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.