Retrieve the neighbors of a given node which are of a given type using the neighbors reference object.

search_neighbors(root, type, neighbor_list)

Arguments

root

ID of the root node.

type

Desired type of the neighbors.

neighbor_list

Neighbor reference object constructed by get_neighbor_list().

Value

Vector of neighbors of a given type.

See also

get_neighbor_list() for neighbor reference object construction.