R/find_inbound_neighbors.R

Defines functions find_inbound_neighbors

Documented in find_inbound_neighbors

#' Generates the SQL to find the inbound neighbors for a node in the database
#'
#' @param identifier The identifier for the node
#' @return A SQL statement to find the inbound neighbors
#' @export
find_inbound_neighbors <- function(identifier) {
  paste0("SELECT * FROM edges WHERE target = \"", identifier, "\";")
}

Try the simplegraphdb package in your browser

Any scripts or data that you put into this service are public.

simplegraphdb documentation built on March 12, 2021, 5:05 p.m.