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, "\";")
}
mikeasilva/simplegraphdb documentation built on March 15, 2021, 1:47 p.m.