For a given set of root nodes, step along a given meta-path to find their neighbors
using either get_neighbors() (for edge lists) or search_neighbors() (for
neighbor lists).
map_neighbors(
roots_subset,
current_mp,
next_mp,
reference_list,
list_type = c("edge", "neighbor")
)Paths from a specific root node as a data.table.
Label of the current type along the meta-path.
Label of the next type along the meta-path.
Either an edge list as a data.table or a neighbor reference object constructed
by get_neighbor_list(). If an edge list is provided, the data.table must contain the following columns:
OriginIDs of the origin nodes for each edge.
DestinationIDs of the destination nodes for each edge.
OriginTypeTypes of the origin node for each edge.
DestinationTypeTypes of the destination node for each edge.
EdgeTypeTypes of each edge.
If an edge list is provided, specify "edge". If a neighbor list is provided, specify "neighbor".
Neighbors of the root nodes of a specified type (along the meta-path) as a data.table.
get_neighbor_list() for neighbor reference object construction.