Retrieve all neighbors of a given node, stratified by specific node types.

get_neighbors_type(root, edge_list_types, edge_list)

Arguments

root

ID of the root node.

edge_list_types

Specified node types to stratify by.

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

Nested list of neighbors grouped by type.