get_neighbors: Get node neighbors of specified type using edge list.

View source: R/get-neighbors.R

get_neighborsR Documentation

Get node neighbors of specified type using edge list.

Description

Retrieve the neighbors of a given node which are of a given type.

Usage

get_neighbors(root, type, edge_list)

Arguments

root

ID of the root node.

type

Desired type of the neighbors.

edge_list

Edge list as a data.table which must contain the following columns:

Origin

IDs of the origin nodes for each edge.

Destination

IDs of the destination nodes for each edge.

OriginType

Types of the origin node for each edge.

DestinationType

Types of the destination node for each edge.

EdgeType

Types of each edge.

Value

Vector of neighbors of a given type.


ayushnoori/metapaths documentation built on March 19, 2023, 7:35 p.m.