Compute degree count stratified by node type using either an edge list or neighbor reference object computed by get_neighbor_list().
search_degrees(
root,
type = NA,
reference_list,
list_type = c("edge", "neighbor"),
consider_edge_type = TRUE
)ID of the root node.
Desired type of the neighbors.
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".
Should EdgeType be considered in the degree calculation? Only possible when using a edge list (i.e., list_type is "edge") rather than a neighbor list.
Degree count stratified by type.
get_neighbor_list() for neighbor reference object construction.