Find all object identifiers linked to the specified object identifier
by traversing the links in the specified direction.
client <- NmdcClient$new()
client$follow_links(root_id, direction, steps = NULL)
Arguments
- root_id
The object identifier to start from.
- direction
The direction to traverse the links.
Use `1` for outgoing links and `2` for incoming links.
- steps
The maximum number of steps to follow.
Defaults to NULL which follows all links.
Value
A list of object identifiers linked to the specified object identifier.
Examples
linked <- client$follow_links('nmdc:bsm-13-7qxjvr77', 1)
#> Error: object 'client' not found
linked <- client$follow_links('nmdc:bsm-13-7qxjvr77', 2)
#> Error: object 'client' not found