R/map-neighbors.R
traverse_mp.Rd
Recursive function to traverse the meta-path until it is expounded. The variable mp
is a list of node types (i.e., a meta-path),
which is shortened on each call of traverse_mp()
.
traverse_mp( roots, mp, step = 1, reference_list, list_type = c("edge", "neighbor"), verbose = TRUE )
roots | ID of the root node on the first iteration, otherwise, |
---|---|
mp | List of node types (i.e., a meta-path). |
step | Counter for recursive function. |
reference_list | Either an edge list as a
|
list_type | If an edge list is provided, specify |
verbose | Should intermediate calculations be printed to console? |
List of all meta-paths from the root node following a specific meta-path, as a data.table
.
get_neighbor_list()
for neighbor reference object construction.