R/inGraph.R

Defines functions inGraph

inGraph <- function(terms, graph) {

  t <- strsplit(terms, ";|[[:space:]]+")[[1]]
  sum(nodes(graph) %in% t) > 0

}

Try the PloGO2 package in your browser

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

PloGO2 documentation built on Nov. 8, 2020, 5:40 p.m.